I had to make these functions (pc, hc, rcc,) because I couldn't just add up the other functions into the trip_cost since I decorated it with strings and stuff. I tried to make it work, but yea...

```
city_one = raw_input("Please select a city to find out cost. Charlotte, Tampa, Pittsburgh, Los Angeles.")
nights = input("For how many nights will you be staying? An integer please:")
r = city_one[0].upper()
city = (r + city_one[1:])
days = input('And for how many days would you like a rental car?')
def plane_ride_cost(city):
if city == "Charlotte":
print "Plane cost will be:"
print 183
return 183
elif city == "Tampa":
print "Plane cost will be:"
print 220
return 220
elif city == "Pittsburgh":
print "Plane cost will be:"
print 222
return 222
elif city == "Los Angeles":
print "Plane cost will be:"
print 475
return 475
else :
return "Error"
def hotel_cost(nights):
if nights == int(nights):
print "The hotel cost will be:"
a = 140 * nights
print a
return a
else:
return "Error"
def rental_car_cost(days):
car_cost = days * 40
if days >= 7:
print 'rental cost original price will be'
print car_cost
car_cost -= 50
print 'but since it is 7 days or exceeds that limit, $50 will be deducted from the original price shown above. Price changed to:'
print car_cost
return car_cost
elif days >= 3 and days < 7:
print 'rental cost original price will be'
print car_cost
car_cost -= 20
print 'but since it is 3 days or exceeds that limit, $20 will be deducted from the original price shown above. Price changed to:'
print car_cost
return car_cost
elif days < 3:
print 'the overall cost for a rental will be'
print car_cost
return car_cost
else :
return 'Error'
plane_ride_cost(city)
hotel_cost(nights)
rental_car_cost(days)
def pc():
if city == 'Charlotte':
return 183
elif city == 'Tampa':
return 220
elif city == 'Pittsburgh':
return 222
elif city == 'Los Angeles':
return 475
else :
return 'error'
def hc():
if 0 == 0:
return nights * 140
else:
'error'
def rcc():
cc = days * 40
if days >= 7:
cc -= 50
return cc
elif days >= 3 and days < 7:
cc -= 20
return cc
elif days < 3:
return cc
else :
return 'Error'
def trip_cost():
if 0 == 0:
print 'Overall trip cost is:'
print pc() + hc() + rcc()
else :
print 'error'
trip_cost()
```