Now that you have Python ready, we can continue to write our first program. Type the following code in any text editor or IDE then save it, in my case I named it hello.py.
print("hello!")
print("This is my first program!")
print("I will enjoy this tutorial so much!")
To run the script, type python hello.py, in the command shell. You should be able to see to output.Let's print more, try to add this program in hello.py.
print("I'm very excited that my first program worked well.")
print("I'm looking forward to learn Python much more.")
print("I realized that coding is fun.")
print("I feel my fingers is itchy to add more lines of code.")
print("Hope you guys can try it too")
OK!, try to run your program again, type python hello.py in your command shell.
0 Response to "2. First Program"
Post a Comment