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 the repeated letters and their occurrences (Note: show the repeated letters only, don't put non-repeated letter here) H:\>python C:\Users aslsabbaghpourhokna\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 aslsabbaghpourholma\Documents\IT2431 Module3\assign3-4.py "Hello World" The converted tuple is: ('H', 'e', '1', 'l', 'o', The repeated letter 1 has 3 occurance in the tuple The repeated letter o has 2 occurance in the tugle
Step by Step Solution
There are 3 Steps involved in it
To achieve the task described here is a Python program that converts a string to a tuple identifies ... View full answer
Get step-by-step solutions from verified subject matter experts
