Apr-20-2021, 12:44 PM
(Apr-20-2021, 12:29 PM)buran Wrote: this code will produce SyntaxError, because there iselif
withoutif
Then, even if you fix it, this condition
Error:File "***", line ** elif int(num) != 1 or int(num) != 2 or int(num) != 3: ^ SyntaxError: invalid syntaxint(num) != 1 or int(num) != 2 or int(num) != 3:
is always true, because you useor
ok, I changed it to if but do you have any idea on how to make the condition not always true?