Python Project for beginner(weight converter) #python
#coding #develop
python, python project, python for beginners, weight converter, python weight converter, coding for beginners, learn python, python projects for beginners, python coding, python programming, python example, python basics, python tutorial, easy python project, python step by step, simple python project
Code:
weight = float(input("Enter Weight:"))
unit = input("Enter unit (K/L): ")
if unit == "K":
weight = weight * 2.205
unit = "Lbs"
print(f"Weight in pounds: {weight} {unit}")
elif unit == "L":
weight = weight / 2.205
unit = "kg"
print(f"Weight in kilograms: {weight} {unit}")
else:
print("Invalid unit")
Sur cette page du site, vous pouvez voir la vidéo en ligne Python Project for beginner(weight converter) durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur The GrapTech 18 mai 2025, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 9 fois et il a aimé 3 téléspectateurs. Bon visionnage!