Skip to content

Commit 9fde8d1

Browse files
committed
Create SI_units.py
convert units to International System of Measurements
1 parent 93742b7 commit 9fde8d1

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

SI_units.py

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
2+
#converting pounds to kg
3+
4+
def pounds_to_kg(pounds):
5+
return pounds*0.453592
6+
7+
def feet_to_meters(feet):
8+
return feet*0.3048
9+
10+
def inches_to_meters(inches):
11+
return inches*0.0254
12+
13+
def yards_to_meters(yards):
14+
return yards*0.9144
15+
16+
def miles_to_meters(miles):
17+
return miles*1609.34
18+
19+
def miles_per_hour_to_ms(miles_per_hour):
20+
return miles_per_hour*0.44704
21+
22+
def celsius_to_kelvin(celsius):
23+
return celsius + 273.15
24+
25+
def farenheit_to_kelvin(farenheit):
26+
return ((farenheit - 32)/1.8) +273.15

0 commit comments

Comments
 (0)