Jul 10 2017 09:18 PM
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!
# 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?
Jul 12 2017 07:13 AM