+ 1

Letter Counter Given a string as input, you need to output how many times each letter appears in the string. You decide to sto

By python 3

19th Feb 2021, 1:09 PM
Arya Jain
Arya Jain - avatar
7 Respuestas
+ 2
Please add-show your attempt so the community can help you more easily :)
19th Feb 2021, 1:12 PM
Matthew
Matthew - avatar
+ 2
This will help you when you like to learn coding: https://code.sololearn.com/cd89N09f7P0R/?ref=app
19th Feb 2021, 1:24 PM
JaScript
JaScript - avatar
+ 1
Arya Jain what did you expect? This code shows the longest word. #input example: python is best #output: python #the longest word #input: is best #output: best
19th Feb 2021, 3:59 PM
JaScript
JaScript - avatar
+ 1
This is already a big part of the solution. 1. The word will be received; 2. You take each letter in first for loop and check in a second for loop how many times it appears; 3. Print the result. Try to code this algorithmus on SL Playground and provide us a link to this attempt if you have any further questions.
19th Feb 2021, 4:14 PM
JaScript
JaScript - avatar
0
text = input() dict = {} I WANT AFTER THIS
19th Feb 2021, 1:14 PM
Arya Jain
Arya Jain - avatar
0
JaScript code is not working as expected. It's coming the same as whatever we input.
19th Feb 2021, 1:43 PM
Arya Jain
Arya Jain - avatar
0
JaScript My question was not this
19th Feb 2021, 4:00 PM
Arya Jain
Arya Jain - avatar