Skip to content

Instantly share code, notes, and snippets.

@danielvlopes
Created February 9, 2018 03:50
Show Gist options
  • Save danielvlopes/82fe56ef3f6db0a93ce3d9f3920e5fad to your computer and use it in GitHub Desktop.
Save danielvlopes/82fe56ef3f6db0a93ce3d9f3920e5fad to your computer and use it in GitHub Desktop.
>>> answer = "yes"
>>> num_answers = 0
>>> if answer:
... num_answers = num_answers + 1
...
>>> answer = ""
>>>
>>> print num_answers
1
>>> print answer
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment