Skip to content

Instantly share code, notes, and snippets.

@hammertoe
Last active January 5, 2020 14:49
Show Gist options
  • Save hammertoe/7524e935cfa05cb652ff67cd58be0dd0 to your computer and use it in GitHub Desktop.
Save hammertoe/7524e935cfa05cb652ff67cd58be0dd0 to your computer and use it in GitHub Desktop.
Simple temperate control function
def heater_control(temperature):
if temperature > 20:
return 0
else:
return 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment