Answer to Question #250035 in Python for python

Question #250035

Write a function that takes quantity in pounds and convert it into gram and kilogram

Reflect the concept of required argument

1 Pound = 453.59237 Grams

1 Pound = 0.454 kilograms


1
Expert's answer
2021-10-12T00:36:38-0400
 def convert (p):
	gram = p*453.59237
	kg =p*0.454
	print(gram, "grams\n", kg, "kilograms.")
	
convert(6)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS