Question: 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
Get step-by-step solutions from verified subject matter experts
