Last active
January 5, 2020 14:49
-
-
Save hammertoe/7524e935cfa05cb652ff67cd58be0dd0 to your computer and use it in GitHub Desktop.
Simple temperate control function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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