environment windows7 Visual Studio Code chrome
This article is written for beginners in programming and Python.
Hello World!!! First is the cliché "Hello World". To display this spell on your PC screen using Python, use a programming version of Notepad called a text editor. I'm using Visual Studio Code (VS Code), and it takes more than 20 hours to set up the environment before it can be used. I used VS Code in HTML & CSS, but I had a hard time using it in Python.
So it's quick to use the simple Google Colaboratory as a text editor first. In addition, the following link is easy to understand how to use google colaboratory. How to get started with Google Colaboratory
Now, let's write Hello World !!!! before breakfast.
begin.py
"Hello World"
To print this string to the screen, write print ("Hello world"). Once you've written it, click a button like the Google colaboratory music play button.
begin.py
print("Hello World")
#Hello World is output
Did you see Hello World on your screen? When I entered the code, I wrote "Hello World" and double quotes, but what was output on the screen was Hello World and double quotes missing. This is the rule that when Python writes characters, enclose them in Japanese, English, any language with double quotation marks or single quotation marks.
In this way, programming has the task of learning the rules and the task of reusing it while thinking about what it has learned like a function.
begin.py
print("Continue")
#Continue
Recommended Posts