Share your repls and programming experiences
This is definitely not dangerous.
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.
yes
YES
YeS
@RhinoRunner Thats extremelyyyyy usefull thank you! :)
instead of doing:
you can do:
.lower() lowercases the string, so it would work if they put anything like
yes
orYES
orYeS
etc.@RhinoRunner Thats extremelyyyyy usefull thank you! :)