As a programmer, I think it would be better if we wrote the code in the CS50’s norme.
def deep():
User_entry = input(" What is the answer to the Great Question of Life, the Universe and Everything: ").strip("")
if(User_entry == "42" or User_entry == "Forty Two" or User_entry == "forty-two" or User_entry == "forty two"):
return " Yes "
else:
return " No "
print(deep())
def deep():
User_entry = input(" What is the answer to the Great Question of Life, the Universe and Everything: ").strip("")
if(User_entry == "42" or User_entry == "Forty Two" or User_entry == "forty-two" or User_entry == "forty two" or User_entry == "FoRty TwO"):
return " Yes "
else:
return " No "
print(deep())
New contributor
Winchel Stjean is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1