Sep-08-2020, 12:56 PM
there are number of issues in your code
- it is
if
, notIf
- it should be
:
, not;
, e.g.if a==1:print('The answer is ',x+y)
- no need of
;
at the end of line
- one-line
if
are generally discouraged
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs