{}
CODE VISUALIZER
Master DSA, Python and C with step-by-step code visualization.
See it in action
CODE VISUALIZER
Master DSA, Python and C with step-by-step code visualization.
See it in action
run-icon
main.py
weight = input("Enter Your Weight: ") unit = input("L(bs) or K(g): ") if unit == 'kg': lb = float(weight) * 2.2046 print("Your weight in L(bs): ",lb) elif unit == 'lb': kg = float(weight) * 0.453592 print("Your weight in K(g): ",kg) else: print("invalid")
Output