Question: Complete the function convert _ to _ kilograms ( ) that has one parameter as a mass in pounds. The function returns the mass converted

Complete the function convert_to_kilograms() that has one parameter as a mass in pounds. The function returns the mass converted to kilograms, given that 1 pound =0.453592 kilograms.
Ex: If the input is 30, then the output is:
The number of kilograms is 13.608 def convert_to_kilograms(pounds):
''' Your code goes here '''
user_pounds = int(input())
# Print with value rounded to 3 decimal places
print(f'The number of kilograms is {convert_to_kilograms(user_pounds):.3f}')

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!