Forum Discussion
紫頤 秦
Jul 11, 2017Copper Contributor
Python for testing item
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
Seafood and dairy is supposed to be allergen except for chocolate but why the conclusion is false?
- Marius PretoriusIron ContributorI 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.