My program lets the user enter as many strings as they desire, and it will count the number of each character that appears in the strings. After…

  

My program lets the user enter as many strings as they desire, andit will count the number of each character that appears in the strings. After strings are entered, the program will print a report listing each character that appeared in the strings, along with the number of times it occurred. Report 1 character per line of output and report each character only once. I am not allowed to import any modules such as math, etc. and cannot use any container functions such as len(), etc. Also, data entry must end when the user presses enter (enters a string “”). (I am using Python 3.9.6.) Here is what I have so far: Str_entry = input(“Enter your string: “)charCount = 0for aChar in Str_entry:       if aChar in Str_entry:           charCount += 1       print(charCount, aChar)while Str_entry != ”:   Str_entry = input(“Enter your string: “) Computer Science Engineering & Technology Python Programming

Don't use plagiarized sources. Get Your Custom Essay on
My program lets the user enter as many strings as they desire, and it will count the number of each character that appears in the strings. After…
Just from $13/Page
Order Essay
  

Leave a Reply

Your email address will not be published.

Related Post

Open chat
💬 Need help?
Hello 👋
Can we help you?