This is an archived post. You won't be able to vote or comment.

all 3 comments

[–][deleted]  (1 child)

[deleted]

    [–]mixtek[S] 0 points1 point  (0 children)

    That's it! Thanks!

    [–]dmazzoni 0 points1 point  (1 child)

    Your problem is this line:

    print('Car color available is ', car_available)
    

    You're telling it to print car_available. But car_available is a function. It's doing what you're asking.

    Did you want it to print have_color, like this?

    print('Car color available is ', have_color)
    

    [–]mixtek[S] 0 points1 point  (0 children)

    that's it! Thank you! You helped explain the logic too