In Python, I need to write a program that:
Asks the user to enter a string text. It prints out, for every letter in text, how many times it occurs in text. In the printout, letters should appear in the order in which they appear in the text, but no letter should appear twice. For any letter, you should show the TOTAL number of times it shows up in either upper case or lower case (do not count or display upper and lower cases separately). Spaces and punctuation characters should also be counted. For example:
For input 'hello world!' it should print:
h: 1
e: 1
l: 3
o: 2
: 1
w: 1
r: 1
d: 1
!: 1
For input 'Today it is Tuesday' it should print:
t: 3
o: 1
d: 2
a: 2
y: 2
: 3
i: 2
s: 2
u: 1
e: 1
I'm fairly new and I'm not sure how to go about this.