RenzCutie

StringCountLetters

Sep 28th, 2021 (edited)
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.09 KB | None | 0 0
  1. inStr = input("Enter a string: ")
  2. print("List of char: ", {a:inStr.count(a) for a in inStr})
Add Comment
Please, Sign In to add comment