Skip to content

Instantly share code, notes, and snippets.

@monipip3
Last active March 13, 2018 02:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save monipip3/9e871c5b5f6eb0ffdfa11a3723e95b06 to your computer and use it in GitHub Desktop.
Save monipip3/9e871c5b5f6eb0ffdfa11a3723e95b06 to your computer and use it in GitHub Desktop.
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