# Example to calculate the pythagorean theorm # a^2 + b^2 = c^2 import math def pythag(): a = input("What is a >") b = input("What is b >") c = math.sqrt(math.pow(a, 2) + math.pow(b, 2)) return c # Run the function temp = pythag() print "The length of side c is:", temp