5/7 help plzzzzzzzzzz


#1

help me plzzzzzzzzzzzzzz


#10

Delete our comments Admin why don't ya? r00d :8ball:


#11

def plane_ride_cost(city):
if city.islapha() == "Charlotte":
return 183
elif city.isalpha() == "Tampa":
return 220
elif city.isalpha() == "Pittsbugh":
return 222
elif city.isaplha() == "Los Angeles":
return 475
else :
return "invliad"

def rental_car_cost(days):
cost = days * 40
if days >= 7:
cost = cost - 50
elif days >= 3 :
cost = cost - 20
else :
return cost

please help me from this!!


#12

My code like this bellow:

def plane_ride_cost(city):
if city == "Charlotte":
return 183
elif city == "Tampa":
return 220
elif city == "Pittsburgh":
return 222
else :
return 475

def rental_car_cost(days):

if days >= 7 :
 return days*40-50
elif 7 > days >=3:
 return days*40-20
else:
 return days*40

def hotel_cost(days):
return days*140

def trip_cost(city, days):
return rental_car_cost(days)+hotel_cost(days)+plane_ride_cost(city)


#13

doesn't work. it can't concatenate strings :frowning: