Skip to content

Commit

Permalink
implement pounds2kg
Browse files Browse the repository at this point in the history
  • Loading branch information
zonca committed Aug 2, 2021
1 parent 46133a5 commit a10799c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,8 @@ def gallons2liters(gallons):
"""Convert gallons to liters"""
liters = gallons * 3.785
return liters

def pounds2kg(pounds):
"""Convert pounds to Kg"""
kilograms = pounds / 2.2
return kilograms

0 comments on commit a10799c

Please sign in to comment.