#Python #course #tutorial
Python exercises for beginners
Python weight converter
weight = float(input("Enter your weight: "))
unit = input("Kilograms or Pounds? (K or L): ")
if unit == "K":
weight = weight * 2.205
unit = "Lbs."
print(f"Your weight is: {round(weight, 1)} {unit}")
elif unit == "L":
weight = weight / 2.205
unit = "Kgs."
print(f"Your weight is: {round(weight, 1)} {unit}")
else:
print(f"{unit} was not valid")
En esta página del sitio puede ver el video en línea Python weight conversion exercise 🏋️ de Duración hora minuto segunda en buena calidad , que subió el usuario Bro Code 31 octubre 2022, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 58,341 veces y le gustó 1.3 mil a los espectadores. Disfruta viendo!