Im trying to call the two functions from the numbers class but it returns an error even tho i believe i have coded it correctly.
i have played with the code but cant seem to get it working.
class main():
num1 = input("please enter a number")
num2 = input("please enter a second number")
choice = raw_input("please type \"add\" or \"multiply\" ")
if (choice =="add"):
print numbers.addition(num1,num2)
elif(choice =="multiply"):
print numbers.multiply(num1, num2)
else:
print "That wasnt a valid choice sorry"
class numbers():
def addition(a, b):
return a + b
def multiply(a, b):
return a*b
any tips or advice would be appreciated.