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.
#01-01: install python on your laptop and/or your university account#
Follow the instructions from Installing Python on your computer.
#01-02: linux tutorial#
Recommended for windows users, mandatory for linux/mac users: follow the linux tutorial (on MyBinder, your laptop, or at university).
#01-03: a first python script#
Open a terminal/prompt and navigate to a folder on your laptop where you will put the exercises of this class.
Create a new python file containing the following code:
import platform
import sys
import os
print('Enter your name:')
username = input()
print(f"Hello {username}!")
print(f"You are running python on {platform.system()}, release {platform.release()}.")
print(f"Your python version is {sys.version}, installed at {sys.exec_prefix}")
print(f"Your current working directory is {os.getcwd()}.", end=" ")
print(f"It has {len(os.listdir())} files and directories in it.")
Run the script. Does everything match your expectations? If not, you might want to get back to all the steps above.