I'm just trying to get this Code to be accepted.
The Code works, all Calculations are correct. The only Problem is that in the Editor there comes the Error-Pop Up telling me
"plane_ride_cost('Charlotte') returned False instead of the correct value 183"
This even appears if the Chose was i.e. Tampa.
As I said all the Calculations with all by me tried Combinations are getting calculated and printed accurate in the console, the only Problem is that there is this Pop Up that huffs me a little bit.
I even thought about if the Problem could be that maybe the Site-internal Interpreter didn't expected a code like this, but in earlier Lessons it told, for example, "this lesson is not attended to get inputs" or something like that. In the whole Section till "Taking a Vacation" I worked with Inputs and all the Lessons were able to get completed with the first three functions. So I don't think that it is the amount of the code, but a bug in it I don't see maybe?
That's the Code - Thanks for your Suggestions what could be the Problem!
def hotel_cost(nights): hotel_calc = 140*nights print "hotel_calc : %d" % hotel_calc return hotel_calc def plane_ride_cost(city): if city == 1: flight_calc = 183 print "Destination: Charlotte / Costs: %d" % flight_calc return flight_calc elif city == 2: flight_calc = 220 print "Destination: Tampa / Costs: %d" % flight_calc return flight_calc elif city == 3: flight_calc = 222 print "Destination: Pittsburgh / Costs: %d" % flight_calc return flight_calc elif city == 4: flight_calc = 475 print "Destination: Los Angeles / Costs: %d" % flight_calc return flight_calc else: print "MALFUNCTION" return False def rental_car_cost(days): car_calc = 40*days print "car_calc : %d" % car_calc if days >= 7: car_calc = car_calc-50 print "car rental costs : %d" % car_calc return car_calc elif days >= 3 and days < 7: car_calc = car_calc-20 print "car rental costs : %d" % car_calc return car_calc else: print "car rental costs : %d" % car_calc return car_calc def trip_cost(city, days): hotel_calc = hotel_cost(int(input("How many Nights You want to stay? "))) print "HOTEL_CALC %d" % hotel_calc print "" print "For Dest. Charlotte press  \ For Dest. Tampa press  \ For Dest. Pittsburgh press  \ For Dest. Los Angeles press " print "" flight_calc = plane_ride_cost(int(input("Enter your Destination: "))) print type(flight_calc) print "" car_calc = rental_car_cost(int(input("How may Days you want to rent a Car? "))) print "" trip_summary = int(hotel_calc + flight_calc + car_calc) print type(trip_summary) print "The calculated Costs are : %d" % trip_summary return trip_summary trip_cost(1,1)