Question: Python 3 Hello, I need help with this code. My problem is that it the ops and neu variables are not accepted or something like

Python 3

Hello, I need help with this code. My problem is that it the ops and neu variables are not accepted or something like that.

These ones:

opc=int(input(" Chose an option n")). ## This is the problem

neu=int(input("How many do you need ")) ## This is the problem

Don't worry about the other information since it is correct it is just these two variables that are not being acknowledged

Please let me know my mistake

def menu:

print("Choose a pneumatic")

print(" 1for synthetic")

print(" 2 for hybrid ")

print(" 3 for natural")

opc=int(input(" Chose an option n")). ## This is the problem

neu=int(input("How many do you need ")) ## This is the problem

def cal():

if opc==1:

dis=0.05

if neu >=10:

tot=neu*12000*dis

print("The total is ",tot)

else:

tot=neu*12000

print("The total is ",tot)

elif opc==2:

dis=0.10

if neu >=10:

tot=neu*45000*dis

print("The total is ",tot)

else:

tot=neu*12000

print("The total is ",tot)

else:

dis=0.07

if neu >=10:

tot=neu*25000*dis

print("El total is ",tot)

else:

tot=neu*12000

print("The total is ",tot)

menu()

cal()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!