Assignment #01#

This week’s assignment is about getting you more comfortable with linux and able to use python on your computer before doing more complicated things.

Exercise #01-01: linux tutorial#

Follow the linux tutorial from A very short introduction to Linux (on MyBinder or your laptop).

Exercise #01-02a (optional during pandemics): install python on your university account#

Follow the instructions from Installation at the University of Innsbruck (optional) to install python on your linux account at the university.

Exercise #01-02b: install python on your laptop#

Follow the instructions from Installing Python on your PC to install python on your laptop.

Online learning

In previous years, I would make the installation on the University lab mandatory and optional on your laptop - this would be enough for the entire semester. This year is different though, and working in the computer lab is not as easy as before. For this week, you can use MyBinder - but starting from next week I recommend to have a working python on your PC as well.

Exercise #01-03: python script instead of bash#

Use linux on MyBinder for this exercise. Write a python script called my_cli_test.py. The script can be as simple as you wish, but it should produce one printed output (a simple “Hello world!” would suffice!). Put this script in a new directory in your HOME, called bin. Using your knowledge from the Linux tutorial, make this script callable from everywhere (not just from the bin directory) with a call to $ my_cli_test.py. If not on MyBinder, make this change “permanent” for your HOME environment (on MyBinder it is possible to do it as well, but it will be forgotten next time you open a session anyway).