This is a rudimentary question.When you first type Hello World! and run the module, it becomes invalid syntax, and then the middle 7 of 3.7.3 is painted red.How can I solve this?I can't move on.
Supplemental
This is the Windows python IDLE.
When I opened IDLE and entered the screen, there was no Run in the top bar, so I opened the saved one and said Run→Run Module and got an error.
The screen is too simple to understand, but you need to be aware that IDLE has two types: Shell Window and Editor Window.
Cause of Error
>>>>
prompts you to enter the shell listening state.print("Hello, World!") Enter
to display the results and wait for input again.Correct Steps
print("Hello, World!") Enter
to save the file.
It's true that the same thing happens here
print ("Hello world")
I don't think it's a special operation to type only
when running 64 bits of Python 3.7.4 in Windows 10
In Shell, even if there is no problem with the operation of the enter key, the py created by Save on the File menu will generate syntax errors when you run the Run Module from the Run menu.
Full-width spaces not found,
It seems to be different from the error display when I tried Shell.
Excuse me, but may I ask you how it was resolved?
© 2024 OneMinuteCode. All rights reserved.