Skip to content
Sign upLog in

"None" appears in my input box

Profile icon

I am unable to figure out why "None" is displayed where there should be an empty input box. After some looking, it only happens when the input is inside of the 'while' loop. I would really like to remove the "None", as it takes away from the look and feel of the program. If you know why it does this, please let me know!
Link to the program

You are viewing a single comment. View All
Profile icon

There's no need for the print function. Use input('Guess the random number: ')

Profile icon

Thank you very much,