Python for testing item

Copper Contributor

Hello,  I'm new to this community and also programming and I'm starting with Python right now. I'm taking classes online edX: 

Welcome to Microsoft's DEV236x!

Introduction to Python: Absolute Beginner
I'm stuck with something, I hope someone can help me.
# Allergy check 
print('ALLERGY CHECK')
# 1[ ] get input for test
allergen='seafood,dust,flower,dairy,nuts'
input_test=input('Enter things you have eaten in 24 hours: ')
# 2/3[ ] print True if "dairy" is in the input or False if not
print('Have you eaten anything you are allegic with?',input_test in allergen螢幕截圖 2017-07-11 11.55.33.png

 Seafood and dairy is supposed to be allergen except for chocolate but why the conclusion is false?

 

1 Reply
I think you're at the wrong forum. You'd be better off posting this at a forum where they teach coding. You could try at codecademy.com. They have a python section.