Why it gives an error after entering the floor?

def formula(): 
 wi = input("type your gender : ")
 a = str(wi)
print(a)
 if a == "Man" or a == "Boy" or a == "Guy" or a == "Male" or a == "Male":
 ves_m = input("Write your height :) : ")
try:
 ves_m = input("Write your height :) : ")
 ves_m = int(ves_m)
 otvet = (ves_m - 100)*1,15 #the formula
 print:("ideal weight for your age:")
print(otvet)
 except(ValueError): 
 print("Incorrect value")
 znach = input("""Start the application again?
""")
 if znach == "Yes":
formula()

 if a == "Female" or a == "Woman" or a == "Girl" or a == "Female":
try:
 ves_g = input("Now the height : ")

 ves_g = int(ves_m)
 otvet = (ves_m - 100)*1,15 #formula
 print:("ideal weight for your age:")
print(otvet)
 except(ValueError): 
 print("Incorrect value")
 znach = input("""Start the application again?
""")
 if znach == "Yes":
formula()

else:
 print("write gender correctly :( ") 
 znach = input("""Start the application again?
""")
 if znach == "Yes":
formula()
formula()


Error:
Traceback (most recent call last):
File "SRL calculation Weser", line 41, in
formula()
File "SRL calculation Weser", line 4, in formula
print(a)
UnboundLocalError: local variable 'print' referenced before assignment
March 12th 20 at 08:44
2 answers
March 12th 20 at 08:46
Solution
print:( # This is a colon you do not mind?
March 12th 20 at 08:48
closely at these two lines view
print:("ideal weight for your age:")
print(otvet)

how do they differ?

Find more questions by tags Python