Skip to content

Instantly share code, notes, and snippets.

@lbattaglioli2000
Created June 23, 2016 03:32
Show Gist options
  • Save lbattaglioli2000/11404417bb2efa042ee52228c431526c to your computer and use it in GitHub Desktop.
Save lbattaglioli2000/11404417bb2efa042ee52228c431526c to your computer and use it in GitHub Desktop.
ice_cream = "ice cream"
# method 1:
print("There is ice in ice cream: " + str("ice" in ice_cream))
# or...
# method 2:
ice_in_ice_cream = "ice" in ice_cream
print("There is ice in ice cream: " + str(ice_in_ice_cream))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment