May-03-2019, 11:34 PM
while guess_count<guess_most: answer=input('Guess a number ') guess_count+=1 if str(answer)==str(winning_number): print('Correct!') breakI know this is a very simple problem but as I stated in the thread subject, I am a beginner. I was trying to make the classic 'guess the number' game and I want to add a function so that when i answer wrong in the first try, I want it to say 'try again' instead of 'guess a number'. I hope you can help, thanks.