Python Python Basics Meet Python Syntax and Errors

uppercase P for Print

When i typed in Print("Hello, World!") it still gave me Hello, World! I did not receive an error reply. Does this mean that the videos can be outdated?

4 Answers

In case you are here I found my error: you're supposed to save after almost everything you do.... all i knew was to save but not continuously. MAN DID THIS MESS ME UP

caits
caits
2,768 Points

That makes sense! I'm glad you figured it out.

Me to !!!!!

caits
caits
2,768 Points

It shouldn't work and you should get an error. To be sure, I tried it myself and I did get an error. I don't know why you might've still gotten the correct output. Very strange.

It also executed it when I used ('Hello, World") [note: ' "] properly.... do you think it can be the browser I'm on? Are you on Google Chrome?

caits
caits
2,768 Points

I've seen some people in the forums mention that their code, which was correct, kept returning errors until they restarted their browser. Maybe it's some glitch like that. I'm using Firefox, not Chrome. I wonder if anyone else might have some insight?

Thanks I'm going to try Firefox because this is annoying now lol :( . I corrected everything and now I'm getting a whole new error message.

Gideon De Villiers
PRO
Gideon De Villiers
Pro Student 630 Points

My console also printed correctly after trying to force an error. It turns out I didn't save the file. After saving, voila the error was returned.