I am trying to make a song generator where the user can add notes and lengths to a list through inputs. The input part is working but I am not able to get the things that are being added to the list to be formatted correctly. This is the code below.
generatedSong= while True: noteAndLength=input("Please pick a note and note length in this format: ([note], [note length]): ") generatedSong.append(noteAndLength) keepGoing=input("Would you like to add another note? ") if keepGoing=="No" or keepGoing=="no": break else: continue print(generatedSong) If I were to add the notes a and b with full note lengths to the list, it should look like this: [('a', 1), ('b', 1)] But when I am appending the notes to the list it ends up looking like this: ["('a', 1)", "('b', 1)"] I basically just need to figure out how to not turn it all into a string/remove the quotations that I have in bold.