[Solved] Addition function in Python is not working as expected
You don’t need the functions nor the sum or multiply variables, just put the operation in str.format(), and you were missing the last position. # def addition(num1,num2): # return num1+num2 # def multiplication(num1,num2): # return num1*num2 print(“1.addition”) print(“2.multiplication”) choice = int(input(“Enter Choice 1/2”)) num1 = float(input(“Enter First Number:”)) num2 = float(input(“Enter Second Number:”)) # sum … Read more