Oops, try again. It looks like nothing was printed to the console!


#1

Oops, try again. It looks like nothing was printed to the console!


#2

Can you paste the code and error messages?


#3

def hotel_cost(nights):
return 140*nights
hotel_cost(2)
def plane_ride_cost(city):
if city=="Charlotte":
return hotel_cost+(183*2)
elif city=="Tampa":
return hotel_cost+(220*2)
elif city == "Pittsburgh":
return hotel_cost+(222*2)
elif city == "Los Angeles":
return hotel_cost+(475*2)
else:
return "Your City is not in our list"

"""city = raw_input("Enter the name of city")
night = raw_input("Enter the number of days")

hotel_cost(night)
plane_ride_cost(city)"""

days= raw_input("Enter the number of days")
def rental_car_cost(days):
rent=40

s =type(days)
if s==int:
    if days>=7:
        rent_amount=days*50
    return rent_amount

    elif days=>3 and days<=7:
        rent_amount=days*20
    return rent_amount

    else:
        rent_amount=rent+40

else:
    return "Enter the valid number of days"

Can you help on this code.