+ 1
Why am I getting none in the output
Only started learning 3 days ago, can anyone explain why I get the word 'none' in the output if I were to use an equal number? also anyway to prevent the none from appearing in the output? https://code.sololearn.com/cs64Yyrlwhmh/?ref=app
2 Answers
+ 2
Hi, you are getting none because you wrote:
if a==b:
print("same")
You should have instead returned the statement as you did in the first two lines so write this:
if a==b:
return "same"
0
Mo Hani Thank you very much!