Homework 1

As your first homework, send me a screenshot (a single JPG/PNG file) of your Python environment. It should contain a started interactive session and your favourite editor with a Python script.

EXERCISE 1.1 (PYTHON WEB SITE)

Visit the Python Web Site https://www.python.org/. Find the latest version of Python. Find Python Enhancement Proposals (PEPs). Find The Python Standard Library documentation.

EXERCISE 1.2 (CALCULATOR)

Install the latest version of Python and/or run Python in your system. Use Python CLI as a calculator.

EXERCISE 1.3 (EDITORS)

Check text editors available in your system. Create a hello.py module and run the script.


#!/usr/bin/python3

name = input("Enter your name: ")
print ( "Hello {}!".format(name) )
for char in name:
    print(char, ord(char))   # ASCII code
input("Press any key ...")   # on Windows

EXERCISE 1.4 (GITHUB)

Visit the GitHub Web Site https://github.com/. Sign up for GitHub with your UJ email (with uj.edu.pl domain). Create a repository for your Python scripts.