A fixed symbol that is displayed to indicate that software etc. is "waiting for input". Originally, prompt is a word that refers to an action that encourages the other party to speak.
You can create and run small programs on the spot, and try out various functions of python.
① When the command prompt starts, enter [python] and press the enter key. When ">>>" appears on the screen, the setting is complete! !! !!
ex) Enter 1 + 2 and press enter → 3 is displayed
② Exit the python interpreter. Press CTRL + Z, and when ^ Z is displayed on the screen, press enter to finish.
→ print ("character string") or print ('character string') "",'' Can be either → print (numerical value)
It may be because you entered the program in double-byte characters → Turn off the Japanese input function and re-enter in half-width characters.
① Open Notepad and enter the program. (2) Save as> Specify .py as the extension for the file name and save the file (this time test.py is used) ③ Start the command prompt ④ Enter python test.py and press the enter key. If you want test.py to execute a file that is not the directory displayed on the command prompt screen, clarify the location of the file.
A thought-provoking guide for writing easy-to-read python programs
① Install pycodestyle At the command prompt pip install pycodestyle → Successfully installed pycodestyle ~
② How to use pycodestyle pycodestyle filename
③ If a point to be corrected is found, it will be displayed.
Recommended Posts