Skip to content

Instantly share code, notes, and snippets.

Macy Graham-Kimbrough magi196502

View GitHub Profile
@magi196502
magi196502 / script.py
Created Nov 8, 2018 — forked from codecademydev/script.py
Codecademy export
View script.py
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 Nov 8, 2018 — forked from codecademydev/script.py
Codecademy export
View script.py
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
View project.sqlite
SELECT *
FROM startups;
SELECT COUNT(name)
FROM startups;
SELECT SUM(valuation)
FROM startups;
SELECT MAX(raised)
You can’t perform that action at this time.