Learn how to code with python: Lesson 1 - Hello World!
|Learn How to Code With Python - Lesson 01|
Code and explanationHere is the code that is used in the video. As you can see the example is fairly simple. Most of the code in the file is actually notes (between the triple-double quotes). At the top of the file, I start with a hashbang (#!) and then the location of my Python3 install at '/usr/bin/python3'. This will ensure that this script will always be executed by that install of Python on my system. Most likely the script will also run without it. So the only line that actually takes care of the printing of the message is line 13, which says 'print("Hello World!")'
VideoYou can watch the video on my youtube channel and follow me there.
Or simply watch it below.
If you like this series, then please share it with others. Thank you so much!
For the next lesson click here.