Ok so I'm creating a loop:
def equ(par1,par2):
con1=4/par1
ready=False
add=False
if ready==True:
if add==True:
par2+=con1
add=False
print("true")
elif add==False:
par2-=con1
add=True
print("False")
elif ready==False:
par2=con1
ready=True
input()
return par2
Every time I run the program it doesn't do what it's supposed to. I notice that it will NOT change ready to true. Could any one give me some help? THANKS! :)
ifconditional. what are you trying to do ?ready = True???if ready:instead ofif ready==True:andif not ready:instead ofif ready==False: