In Class Code 3/12/15

#if eyecolor == "brown":
# if haircolor == "brown":
# print("Wave your hands")
# elif haircolor == "blond"
# print("Jump up and down")
# else
# print("Do a dance")
#elif eyecolor == "green"
#import math
 
#def main():
# print("This program find the real solution to a quadratic\n")
# a,b,c = eval(input("Please enter the coefficients (a, b, c): "))
# 
# discrim = b * b - 4 * a * c
# if discrim < 0:
# print("\nThe equation has no real roots!")
# if b > 2:
# print("Happy 2s")
# else:
# print("So small")
# elif discrim == 0:
# print("Zeeeeeeeeeeeero")
# else:
# discRoot = math.sqrt(discrim)
# root1 = (-b + discRoot) / (2 * a)
# root2 = (-b - discRoot) / (2 * a)
# print("\nThe solutions are:", root1, root2)

def main():
 x = eval(input("Please enter a 1 to go"))
 
 i = 0
 j = 0
 output = ""
 while i < 3:
 while j < 3:
 output = output + "[]"
 j = j + 1
 output = output + "\n"
 j = 0
 i = i + 1
 print(output)
main()

Comments are closed.