0

[SOLVED] Can someone help me with my code?

So here's the code. Can someone fix it for me? I'm really new to this. def bird_available(bird): bird_variety = ("pigeon", "duck", "lovebirds") return(bird.lower() in bird_variety) have_bird = bird_available(input().lower()) print(" is available", have_bird) I just want the output to display the "<input> is available true/false" I'm trying to learn Python but i'm just really stuck and I need to solve this so I would know what went wrong. Thank you!

4th Nov 2017, 11:02 PM
Aether Lynx
Aether Lynx - avatar
3 Answers
+ 6
def bird_available(bird): bird_variety = ("pigeon", "duck", "lovebirds") return(bird.lower() in bird_variety) input = input().lower() have_bird = bird_available(input) print(input, " is available", have_bird) am I corrected understand what you want?
4th Nov 2017, 11:15 PM
Mantelis
Mantelis - avatar
- 1
Yes! Thank you so much for the help!
4th Nov 2017, 11:20 PM
Aether Lynx
Aether Lynx - avatar