This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT * | |
FROM startups; | |
SELECT COUNT(name) | |
FROM startups; | |
SELECT SUM(valuation) | |
FROM startups; | |
SELECT MAX(raised) |
NewerOlder