Frequency analysis issues with tuple error
问题 In the match_letters function, with 'place = string.index(letter)' i keep recieving the same error of 'Value Error: tuple.index(x): x not a tuple.' Does anyone know how to solve this? It will be much appreciated :) Thanks def freq_analysis(): """ Summary: Perform a frequency analysis on a string Paramaters: text - The text to analyse Returns: A string containing the deciphered text """ text = input("enter text") letterCount = getLetterCount(text) Letter_Count_Tuple,new_letter_count,descending