Skip to content

Instantly share code, notes, and snippets.

@gregmacfarlane
Created November 14, 2015 16:29
Show Gist options
  • Save gregmacfarlane/b63565e88594b0761318 to your computer and use it in GitHub Desktop.
Save gregmacfarlane/b63565e88594b0761318 to your computer and use it in GitHub Desktop.
Temperature check in Python
def check_temp(temp):
if temp > 85:
print "It's hot outside. Better bring water."
else:
print "It's a good day for a hike!"
if __name__ == '__main__':
check_temp(90)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment