NMON 8 9 1. def menu(choice): 2 print("Enter 1 to convert from kilograms to pounds") 3 print) print ("Enter 2 to convert
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
NMON 8 9 1. def menu(choice): 2 print("Enter 1 to convert from kilograms to pounds") 3 print) print ("Enter 2 to convert
NMON 8 9 1. def menu(choice): 2 print("Enter 1 to convert from kilograms to pounds") 3 print) print ("Enter 2 to convert from pounds to kilograms") 5 print () 6 choice- int(input("Enter your choice :") X 7-def kilograms to pounds (kilograms): kilograms kilograms 2.204 #return the calculation 10 return(kilograms) 11 print ( kilograms float(input("Please enter your weight in kilograms or in 13 14 15. def poundstokilograms (pounds): 16 pounds pounds/2.204 17 #return the calculated value 18 return (pounds) 19 print() 28 21 while True: 22 menu() 23 choice int(input("Enter your choice
) 12
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!