bugevarun@gmail.com

Members
  • Content Count

    2
  • Joined

  • Last visited

2 Followers

About bugevarun@gmail.com

  • Rank
    Newbie

Profile Information

  • Gender
    Male
  1. I am following python tutorial 4 absolute beginner. I was trying to make on my own, but cant able to rectify the syntax error. def main(): operation = input("What do you want to do('+','-','*','/'):") if (operation != '+'and operation != '-' and operation != '*' and operation != '/' ): # invalid operation print("Enter the valid input") else: num1= int(input("Enter the num1: ")) num2= int(input("Enter the num2: ")) if (operation == '+'): print (num1+num2) elif (operation == '-'): print (num1-num2) elif (operation == '/'): print (num1/num2) elif(operation == '*'): print (num1*num2) main()
  2. bugevarun@gmail.com

    Error

    I was following to the python tutorial video(absolute beginners)-1 by kevin. After downloading and editing environment variable, when i entered python in command prompt.it is showing error. I dont know why. As i am not from computer field so please help me in the way that i can understand easily. thankyou