Skip to main content

Learn how to code with python: Lesson 1 - Hello World!

In this first lesson of my free video course: Learn how to code with Python, you will write your first python program. You may think that the program isn't much, but actually it is a big step to get code to run for the first time in a new programming language. It is also kind of a tradition that whenever you are introduced to a new language you start with printing a message to the screen, that says: "Hello World!".

Code and explination

Here 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 are 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!")'


You can watch the video on my youtube channel and follow me there.

Learn how to code with python: Lesson 1 - Hello World!

Or simply watch it below.

If you like this series, then please share it with others. Thank you so much!

Popular posts from this blog

How to install Google Drive Sync on Ubuntu 16.04 and higher

Google drive is one of the many handy tools Google offers. It is a file synchronization tool that allows you to backup, store and share and access files in the cloud. I use it to collaborate on files with others or to sync movies that I can then easily publish on Youtube.

Unfortunately there is no native Google drive software for Linux Desktops. Luckily there is a way to have a proper sync setup on Ubuntu 16.04 and higher that uses the Google drive API and some Gui tools. Let me show you how I have this installed on my Ubuntu Desktop.

First I install the Grive2 commandline tool:

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install grive

No need to set it up right now. Instead let's first install grive-tools. This is a package that is only available up to Ununtu Vivid, but I have found that is works just the same on Ubuntu 16.04
Run the following from a terminal:

sudo su -c "nano /etc/apt/sources.list.d/thefanclub*.list"
deb http://ppa.lau…

Tools of the trade

In this article I will tell you about the possible tools you have at your disposal for trading. Whether you are building a fence, or building a trading strategy, you need tools to get the work done. In the previous articles we already looked at the question of why, how, what and where to trade. Now it is time to get some tools and setup an infrastructure for trading. We basically need three types of tools.

How to back test a manually traded strategy using TradingView

Trading is hard. It takes a lot of practice. One way to practice and build skill and confidence is to back test a system over and over again. In this video I show you how I do this using online charts at Tradingview.