Contents

  1. area.py
  2. helloworld.py

area.py 1/2

[
top][prev][next]
# Finds the area of a rectangle
# by CS111 class, 9/14/2012

width = 5
height = 7

# to calculate the area, multiply the height by the width
area = width * height

print("area =", area)

helloworld.py 2/2

[
top][prev][next]
# Displays a greeting
# Sara Sprenkle, 01.2012

print("Hello, class!")
print("Your answer is", 4*4)

Generated by GNU enscript 1.6.4.