Skip to main content

Posts

2. More hands-on exercises with Python

This is the second hands-on article in a series of articles. The first article is available here  Getting Started With Python . Highly recommend working through that first if you haven't done so already.  These days there are a plethora of choices to learn something new. Printed books, e-Books, video tutorials on YouTube, MOOC platforms like Coursera, etc. However I have always found product manuals, user and reference guides are the best and most definitive source for learning new languages and technologies. That way you can safely say I have RTFM ( https://en.wikipedia.org/wiki/RTFM ) The standard Python documentation is a good example of well-written documentation and my personal favorite for both learning and teaching.  https://docs.python.org/3.7/    Looks daunting at first sight, doesn't it? 😀 No worries. The key to avoid being overwhelmed is to know where exactly to start from. I recommend the Tutorial section. The subtitle ' start here ' under the ...

1. Getting Started With Python

In this post, we get you started programming with Python within 5 minutes. No prior experience needed, no need to install anything on your computer. Just get started coding from your browser. Run your first Python "Hello World" program Where do we start? When learning a new language it is traditional to get a program to print "Hello World" ( Interesting Tidbit... ). Steps 1. Head over to https://colab.research.google.com/ . You will need sign-in with your Google account and after that you will see a pop-up window with all recent notebooks as shown below. Click on the NEW NOTEBOOK button.  2. A new Notebook opens up. Type in print("hello world") as shown below and press Shift-Enter. After a small delay - typically under a minute or two you will see hello world printed as output. If you made it this far then... Congratulations! You have successfully created and run your first Python program.   3. Go ahead and add a few more lines. Press Shift-Enter on each ...