This file contains hidden or 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
#1 | |
The data describes what is likely the average Math and Verbal SAT scores per state. (I say average because I can't be certain from the data where the values we're derived) | |
#2 | |
The data has an extra row 'ALL' that was a problem throughout my code. I realized I should have removed it earlier. I had a similar problem where I was forced to use .pop which I didn't like because if the code was ran again it would throw off the data moving forward (I made a note on #6). Additionally, Nebraska's state abbreviation was wrong which mean's nothing now until you get to the bonus. | |
#3 |
This file contains hidden or 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 carCost(days): | |
if days >= 7: | |
return (days*40.0-50.0) | |
elif days >= 3 and days <=6: | |
return (days*40.0-20.0) | |
else: | |
return (days*40.0) | |
def convertUS(days): | |
return carCost(days)/.78347 |