degrees = float()
fahrenheit = float()
celsius = float()
meters = float()#decs.
feet = float()
selection = str()
def main():#main program
print("Here are your choices: \n C = celsius \n M = meters \n E = exit")
selection = input("Enter your selection")
while selection != "e":
if selection == "c":
degrees(fahrenheit,celsius)
if selection == "m":
meters(feet,meters)
else:
print("Wrong input")
selection = input("Enter your selection")
print("Thank you for using this program")
main()
def degrees(fahrenheit,celsius):#temperature subprogram
fahrenheit = int(input("Enter temperature in fahrenheit"))
celsius = (5/9)*(fahrenheit) - 32
print(fahrenheit , " degrees = " , celsius , " degrees celsius.")
def meters(feet,meters):#distance subprogram
feet = int(input("Enter measurement in feet"))
meter = 0.305 * feet
print(feet , " feet = " , meter , " meters.")
The error appears for lines 13 and 15, the lines calling the other modules. From reading other posts, they say that using parentheses instead of * for multiplication can be the cause, but I don't see where that would be the case.