DanDan

Members
  • Content Count

    1
  • Joined

  • Last visited

  1. Hi guys, I cannot run the code because error: " if(operation == '+'): ^ TabError: inconsistent use of tabs and spaces in indentation" appears. Do you have an idea where I made a mistake? Here is the code: def main(): operation = input("What do you want to do?") if (operation != '+' or oroperation != '-' or operation != '*' or operation != '/'): #invalid operation print ("You must enter valid operation") else: var1 = int(input("Enter n1: ")) var2 = int(input("Enter n2: ")) if(operation == '+'): print(add(var1, var2)) elif(operation == '-'): print(sub(var1, var2)) elif(operation == '*'): print(mul(var1, var2)) else(operation == '/'): print(div(var1, var2)) main() Thanks in advance.