Feb-24-2021, 06:36 PM
Should I be able to run from the command line?
When I ran the file.py I initially got the print lines as output. I then entered sum_two(3.5,7) and got:
When I ran the file.py I initially got the print lines as output. I then entered sum_two(3.5,7) and got:
Output:'sum_two' is not recognized as an internal or external command,
operable program or batch file.
(Feb-24-2021, 05:51 PM)deanhystad Wrote: Yes on the colon. When I try that in Visual Studio code the computer raps my knuckles with a ruler.
Exiting out of a program from inside a function is usually a bad idea. Do you get the same message if you run your program outside of Spyder. IDLE is my tool of choice when answering questions on the forum. Sometimes IDLE doesn't work as expected, and when that happens I try running my programs from the command prompt or from Visual Studio Code.