r/PythonLearning • • Jul 11 '25

Code won't print

Post image

What's the error?(I'm a newbie)

115 Upvotes

86 comments sorted by

View all comments

1

u/Pokepredator Jul 12 '25

I know many people have commented but once you’ve written the code you have to save it like ctrl+s or the save button. VS code is just like a text editor but with extra steps. It runs code from the file so you have to actually save your editions to the file for it to run.

1

u/Ill-Diet-7719 Jul 12 '25

Like should I save and then run? There's a terminal window there and until now I'd just run it there and everything would go good. This was first time something happened and well I kinda panicked ig

2

u/RealLifeRiley Jul 12 '25

Yes, exactly. If you run without saving, it’s running the last saved version of your code, not the work you just did. CTRL s is your friend

2

u/Ill-Diet-7719 Jul 12 '25

So are you🫂 thanks