Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a Python program to convert the entered string to a tuple. Find all the repeated letters and their occurrences (Note: show the repeated letters
Write a Python program to convert the entered string to a tuple. Find all the repeated letters and their occurrences (Note: show the repeated letters only, don't put non-repeated letter here). H:\>python C:\Users aslsabbaghpourhokma\Documents\IT2431\Module3\assign3-4.py banana The converted tuple is: ('b', 'a', 'n', 'a', 'n', 'a') The repeated letter a has 3 occurance in the tuple The repeated letter n has 2 occurance in the tuple H:\>python C:\Users aslsabbaghpourhokma\Documents\IT2431\Module3\assign3-4.py "Hello World" The converted tuple is: ('H', 'e', 'l', 'l', 'o', '', 'W', 'o', 'r', 'l', 'd') The repeated letter i has 3 occurance in the tuple The repeated letter o has 2 occurance in the tuple
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started