Quotes help make search much faster. Example: "Practice Makes Perfect"

Tuesday, November 27, 2012

Codecademy: "Getting There"


#sample solution


def hotelCost(days):
return days * 140

def planeRideCost(city):
if city == "Charlotte":
return 183
elif city == "Tampa":
return 220
elif city == "Pittsburgh":
return 222
elif city == "Los Angeles":
return 475
else:
return "Unknown destination"

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts