Jul-27-2020, 10:05 AM
Also, note that
input
will return str
while you compare n
(which is global variable used in the function you define - bad practice) with int
, so even if you implement @Gribouillis suggestion the result will not be as expected.
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