STEP 13: Now let's add the elif-statement! Make sure it's at the bottom of your program and NOT indented!

  • Click LOGIC, then and drag out an elif tool. Drop it at the bottom of your program.
  • Change the test variable to choice2 and change the test value to "farm".
  • Go to GRAPHICS and . Drop Corn Field inside the elif-statement. Make sure it is indented!
  • Drop a Say tool inside the elif-statement and change the string in .say() to "At the farm!"

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)