Page for beginners (never installed) It will be explained on windows. For mac people, go to a different page.
First, let's install python. https://www.python.org/
This completes the installation of Python itself!
Let's display "__Hello Wolrd! __". Open an app called "Notepad" and
print('Hello World!')
Type and save. When saving, press the two keys "Ctrl + S" to go to the save screen. When you say to the save screen, File name
"test.py"
Toki, the character code at the bottom
"UTF-8"
After setting, let's save! I couldn't find a place, so I went to the Desktop.
After saving, start the command prompt. At the bottom left of the screen, under "Enter here to search"
"cmd"
Type and press Enter to bring up a black screen.
Be careful from here. The place marked with __'[]'is the name on the computer or any place. __
After starting,
C:¥Users¥[username]>
Is displayed. After the'>',
cd Desktop
Enter. After that,
C:¥Users¥[username]¥Desktop>
It will be displayed. Again, following that'>'
python test.py
Please enter. Then
Hello World!
Will come out. that's all!
By the way, print ('')
is already a Python language.
Python is ready to hit and run. This is the base part of the preferences.
Recommended Posts