Jul-22-2018, 11:44 PM
(Jul-22-2018, 11:35 PM)Larz60+ Wrote:I'm not getting an error, when it tells me to put in two numbers it goes instantly to the else line and prints 'invalid'. It does not perform the calculation.This is why it is important to provide all information necessary to determine what is wrong.
Error:File "/run/media/Larz60p/Data-4TB/python/e-h/f/forum/a-f/calc/src/junk1.py", line 23 print'Invalid' ^ SyntaxError: invalid syntax
You have a syntax error, the script never ran.
change line 23
# From: print'Invalid' # To: print('Invalid')make sure your indentation is 4 spaces. That's important