bAngelov

Sky Watching

May 14th, 2022 (edited)
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. color = input()
  2. daytime = input()
  3.  
  4. match color:
  5.     case "red":
  6.         print("Well, the sun is rising maybe...")
  7.     case "white":
  8.         print("Aren't you watching a lighting bulb?")
  9.     case "blue" if daytime == "night":
  10.         print("Are you kidding? Blue sky at night?")
  11.     case "blue":
  12.         print("That's what it should be!")
  13.     case _:
  14.         print("That's it, you are certainly not watching the sky!")
Add Comment
Please, Sign In to add comment