Poisonous Oyster ABC 393 Completed

Problem 23 of 50

Easy

lightbulb What to do

You have four types of oysters, and one of them makes people sick. Two friends tried different oysters, and you need to figure out which type makes someone sick based on whether they felt fine or sick after eating.

Key Concepts
if-statements conditional logic input and output
Examples

Input: 'sick fine'

Output: 2

Input: 'fine fine'

Output: 4

code Python Editor
Loading Python...
Test Results
tips_and_updates Tips for Beginners
  • Focus on understanding the logic, not memorizing syntax
  • Use print statements to debug your code
  • Don't worry about input parsing - the function handles that for you
  • If stuck, try writing out your solution on paper first