Dec-08-2019, 01:17 PM
Yeah the problem is solved! Thankyou Larz60+!
the solution was this:
the solution was this:
# User input rightNotes = "c4 e4 g4 c5" # Convert user input to numbers text2Numbers = {'c4': 40, 'e4': 44, 'g4': 47, 'c5': 52} rightNumbers = [] # input for my program! for pitch in rightNotes.split(): rightNumbers.append(text2Numbers[pitch]) print(rightNumbers)