Atom wont show Output


#1

I’m pretty new to programming and I just started learning Python using atom. I’m finding it hard to visualize and help correct myself when I cant see the output of the program within Atom.


#2

Well, I accidentally pressed enter and cant find the edit button.

I’m specifically having issues when I run my program (I’ve installed Script). All Atom and Script will show on the bottom is a green check mark and tell me the program successfully ran, but wont print out what I ask it to. I’ve attached an example to hopefully convey what I mean.


#3

You’ve only defined the function. You also need to execute it for anything to actually happen. The same goes for any way you try to run it.


#4

To elaborate on what @Aerijo said, when you write Python code inside a function, you have to call the function. You can write the code outside the function and it should work just fine.