Archived
Private
Public Access
1
0
This repository has been archived on 2026-02-04. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
ProjectBackup/Python/Course/weight_calculator.py
2023-07-31 21:20:56 +02:00

10 lines
262 B
Python

weight = float(input("Your weight: "))
unit = input("(K)g or (L)bs: ")
if unit.lower() == "l":
print("Weight in Kg: " + str(weight / 2.2))
elif unit.lower() == "k":
print("Weight in Lbs: " + str(weight * 2.2))
else:
print("Accepted values: [k, l]")