Contents
- arith_and_assign.py
- first.py
- hello.py
arith_and_assign.py 1/3
[top][prev][next]
# Demonstrates arithmetic operations and
# assignment statements
# by Sara Sprenkle
x = 3
y = 5
print("x =", x)
print("y =", y)
print("x * y =", x*y)
# alternatively:
# result = x * y
# print("x*y =", result)
first.py 2/3
[top][prev][next]
# First program, demonstrating print statement
# Sara Sprenkle
print("This is our first program!")
print("This is our second line.")
print("This is a computation: ", 2*3)
hello.py 3/3
[top][prev][next]
# First program
# by Sara Sprenkle
print("Hello, world")
Generated by GNU Enscript 1.6.6.