Last active
March 17, 2020 14:50
-
-
Save woltage/da3dba4fe8b0f3e5010dc9942d5e2a1f to your computer and use it in GitHub Desktop.
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 kotona_hoitaminen_onnistuu(): | |
if teeko_toita is True: | |
return False | |
return True |
Tuostahan voisi optimoida tuon else:n pois?
if teeko_toita is True:
return False
return True
ja is true -tarkistus on turha:
if teetko_toita:
return False
return True
ja is true -tarkistus on turha:
if teetko_toita: return False return True
Niinhän se on. Selkeyden vuoksi jätin.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fixed 👌