I am new to coding, and I just installed Python 3.7.1 and Wing IDE Personal 6.1 on my computer. I installed python first, then Wing IDE, and pointed Wing to python.exe through the project properties menu. Here's what shows up in the python shell when I start Wing IDE:
3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 14:05:16) [MSC v.1915 32 bit (Intel)] Python Type "help", "copyright", "credits" or "license" for more information.
I wrote the following program:
def addFive(value): return 5 + value
Then saved and ran the program. I wrote in the shell "addFive(106)" and got the following error:
Traceback (most recent call last): Python Shell, prompt 3, line 1 builtins.NameError: name 'addFive' is not defined.
I took some code that I wrote on a school computer, where it ran as intended, and tried to run it on my home computer, where I received the same error. I tried multiple different simple functions. What's going on? Did I install Wing IDE/Python wrong? I know these programs work, so there must be something else going on.