0

I just made a simple weight converter that can take the input from user and convert that to kg or lbs. I didn't got any error but I run the code it just says the value in lbs not in kg... Please help me out... Thanks in advance

enter image description here

Johnny Mopp
  • 12,641
  • 5
  • 36
  • 62

1 Answers1

0
weight=int(input("Ceki gir : "))

kg=weight*2.20
lbs=weight/2.20

type1=input("K for kG P for p ")
    
if type1=="P" or type1=="p":
    print("Your weight is: ",lbs)
elif type1=="K" or type1=="k":
    print("Your weight is: ",kg)
else:
    print("Wrong")```

I wrote like this and i think it is worked u can try and tell me if it is worked or not
Origami25
  • 18
  • 5