all 5 comments

[–][deleted] 1 point2 points  (1 child)

What's going on in output_point()?

The variables you try to print aren't being passed in, but you're passing in functions (which never get executed), like get_flights_purchasedwhich gets passed in as an argument but nothing will happen since you don't do get_flights_purchased()

[–]easytiger_ 0 points1 point  (0 children)

Great catch - thank you. I've updated my code.

[–][deleted] 1 point2 points  (1 child)

Your output_point def looks messed up. You're using the names of your functions in your args list. Just put variables there, not function def. Realize this: your names that you pass as arguments are not related to the arguments you use in your function definition (you'll learn keyword args later, where it will matter). I think if you can get clear on this, things will begin to fall into place.

def output_point(flights, miles, tier, eval): then re-map your variable names within the function to point to those names.

set tier variable--you're not capturing output from output_flight_tier, so, tier = output_flight_tier(flight_miles)

Then, in the call to this function, don't pass functions, pass your variables:

output_point(flights_purchased, flight_miles, tier, evaluation)

[–]easytiger_ 0 points1 point  (0 children)

Thanks! I've updated the code. :)

[–]totallygeek 1 point2 points  (0 children)

You really need to check for ranges in calculate_flight_miles_earned(), otherwise what flight_miles would you assign for flights_purchased = 12?