3
My first Python program tried to print 'hello world' for three hours straight
Last Tuesday, I was following a tutorial and typed print('hello world') into a fresh file. I saved it as 'test.py' and ran it from the terminal, but nothing happened. I spent the next three hours checking my spelling, reinstalling Python, and even restarting my computer. Turns out, I had saved the file on my desktop but was running the command from my Documents folder. Has anyone else had a simple file path issue waste a huge chunk of their day?
3 comments
Log in to join the discussion
Log In3 Comments
kai_park1mo ago
Honestly just use the full file path in your terminal to avoid that headache.
5
paul2511mo ago
Bro @kai_park, you type out the full path every single time? That's wild.
2
king.andrew19d ago
Yeah and I've done that exact thing with the wrong folder at least five times now.
1