Share your repls and programming experiences

← Back to all posts
Game
Meeran8 (3)

This is definitely not dangerous.

Comments
hotnewtop
RhinoRunner (645)

instead of doing:

if D == 'yes':
if D == 'Yes':
if D == 'YES':

you can do:

if D.lower() == 'yes':

.lower() lowercases the string, so it would work if they put anything like yes or YES or YeS etc.

Meeran8 (3)

@RhinoRunner Thats extremelyyyyy usefull thank you! :)