Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Letters used
#1
Usually don't have an issue with tasks like this but I can't think of a simple way to do this task:
----------------------------------------------------------------------------------------------------------------------------------------
Design a program that will ask the user to enter a sentence.
Using a list, use the input sentence to record which letters have occurred in the sentence.
So, the program output would be able to state “The sentence used 19 letters of the alphabet” The letters used were “a,c,f,g, etc…
You should also get the program to count the occurrences of each letter.
----------------------------------------------------------------------------------------------------------------------------------------
I'm probably being really dumb but any help would be appreciated.
Reply
#2
What have you tried? (Please make sure to use code tags when you post your code.)
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020