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
def convert (p):
gram = p*453.59237
kg =p*0.454
print(gram, "grams\n", kg, "kilograms.")
convert(6)
Comments
Leave a comment