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
Asked
Active
Viewed 113 times
0
-
4Also: [Why not upload images of code/errors when asking a question?](//meta.stackoverflow.com/a/285557) – 001 Jul 17 '20 at 18:15
1 Answers
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
- 1
- 5