0

Need help with Py Problem

Help people,I cant handle this problem ,I m just new at Python Programming and I am stuck this problem Explanation: """""""""""""""""""""""" You need to do a dictionary which register the many times a letter is inside a word EX: Input: 'Hello' Output: {'H':1 , 'e':1 , 'l' : 2, 'o':1} """"""""""""""""""""""""""" PD: This Problem is the first in intermediate Python

14th Oct 2021, 6:56 PM
C0d3
C0d3 - avatar
3 Respuestas
+ 3
l = 'hello' dictt={ i : l.count(i) for i in l} output: {'h': 1, 'e': 1, 'l': 2, 'o': 1} does this help you?
14th Oct 2021, 8:16 PM
ubai
ubai - avatar
+ 3
What is the code supposed to do? What are you trying to achieve?
14th Oct 2021, 7:12 PM
Simon Sauter
Simon Sauter - avatar
0
Please,May you explain me that?
14th Oct 2021, 8:51 PM
C0d3
C0d3 - avatar