Sorry in advance if my code is poorly written. I'm trying to make a program that allows you to add numbers to a list, and then provide the user to add more numbers to that same list. Here is what I have:
inputgameoption="y"
while inputgameoption=="y":
###this is where the user inputs the first number
creepscore=eval(input("Finished a game? Type your creep score first then press enter. Next, enter the duration of your game and press enter "))
###this is where the user inputs the second number
gameduration=eval(input("Game duration should be rounded to the nearest minute, [ex. 24:25 becomes 24] "))
cs=[]
times=[]
cs.append(creepscore)
times.append(gameduration)
inputgameoption=input("Enter another game?")
It works fine the first time, but if you say you want to enter more numbers (The enter another game input) it replaces your first input with your second input, and the list will stay with only one numbe in it. Thanks, I'm a python newbie.