The assignment included this link
, which explains input and output in python. And it provides plenty of samples. Go ahead and open the python interpreter, and type some in, and see what they do. A lot of learning is like that: you try things out, and see what it does. See what works, see what doesn't. Try to figure out what the difference is so that you know why.
To run a program, the code should be in a file, "program.py", or something similar. From the command line, type "python program.py" to run it, assuming python is in the current $PATH, and assuming you know what a command line is.
Actually, I guess I should ask that first. Do you know how to run the python interpreter?