Last active
March 13, 2018 02:30
-
-
Save monipip3/9e871c5b5f6eb0ffdfa11a3723e95b06 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
room = "clean" | |
def clean_room(room): | |
""" | |
Tells the user an outcome, given the state of the room. | |
Args: | |
variable: str(state of the room) | |
Returns: str(outcome of the situation) | |
""" | |
if room =="clean": | |
room_outcome = "Phew, We won't be grounded" | |
else: | |
room_outcome = "Uhoh, hide at the neighbor's house" | |
return room_outcome | |
print clean_room("dirty") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment