Skip to content

Instantly share code, notes, and snippets.

View magi196502's full-sized avatar

Macy Graham-Kimbrough magi196502

View GitHub Profile
@magi196502
magi196502 / script.py
Created November 8, 2018 14:19 — forked from codecademydev/script.py
Codecademy export
train_mass = 22680
train_acceleration = 10
train_distance = 100
bomb_mass = 1
def f_to_c(f_temp):
c_temp = (f_temp - 32) * 5/9
return c_temp
f100_in_celsius = f_to_c(100)
@magi196502
magi196502 / script.py
Last active November 8, 2018 16:18 — forked from codecademydev/script.py
Codecademy export
def ground_shipping(weight):
if weight > 10.0:
return weight * 4.75 + 20.0
elif weight > 6.0 and weight <= 10.0:
return weight * 4.00 + 20.0
elif weight > 2.0 and weight <= 6.0:
return weight * 3.00 + 20.0
else:
return weight * 1.50 + 20.0
@magi196502
magi196502 / project.sqlite
Created November 8, 2018 14:03 — forked from codecademydev/project.sqlite
Codecademy export
SELECT *
FROM startups;
SELECT COUNT(name)
FROM startups;
SELECT SUM(valuation)
FROM startups;
SELECT MAX(raised)