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")
На этой странице сайта вы можете посмотреть видео онлайн Python Project for beginner(weight converter) длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь The GrapTech 18 Май 2025, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 9 раз и оно понравилось 3 зрителям. Приятного просмотра!