PATCH//NOTES Open it in the app
← All hands-on practice
Python · 8 min

The whole value

status is the word down. match.py asks if it is exactly do. A piece of the word is not the whole word. Read it, run it, then change the test so it asks for the whole word.

Start it: free, in your browser, no account

What you will do

  1. Read match.py.
  2. Run match.py. It prints check it.
  3. Change the test so it asks if status is down.
  4. Run match.py again. It prints serving.

This stop adds if name == "text":. It is the whole value, not a word inside it. else: can sit under it. No !=, no and, no elif.