# Program One (Powers of Two) # Author: Austin Powers # Date Written: 10 October 2011 def main(): exponent = 0 result = 2 print "Two to the", exponent, "power is ", result exponent = exponent + 1 result = result * 2 print "Two to the", exponent, "power is ", result exponent = exponent + 1 result = result * 2 print "Two to the", exponent, "power is ", result exponent = exponent + 1 result = result * 2 print "Two to the", exponent, "power is ", result exponent = exponent + 1 result = result * 2 print "Two to the", exponent, "power is ", result exponent = exponent + 1 result = result * 2 print "Two to the", exponent, "power is ", result exponent = exponent + 1 result = result * 2 print "Two to the", exponent, "power is ", result exponent = exponent + 1 result = result * 2 print "Two to the", exponent, "power is ", result exponent = exponent + 1 result = result * 2 print "Two to the", exponent, "power is ", result exponent = exponent + 1 result = result * 2 print "Two to the", exponent, "power is ", result exponent = exponent + 1 result = result * 2 print "Two to the", exponent, "power is ", result exponent = exponent + 1 result = result * 2 print "Two to the", exponent, "power is ", result exponent = exponent + 1 result = result * 2 print "Two to the", exponent, "power is ", result exponent = exponent + 1 result = result * 2 print "Two to the", exponent, "power is ", result exponent = exponent + 1 result = result * 2 print "Two to the", exponent, "power is ", result exponent = exponent + 1 result = result * 2 print "Two to the", exponent, "power is ", result exponent = exponent + 1 result = result * 2 print "Two to the", exponent, "power is ", result main ()