mobbyg

Day of The Week Checker

May 18th, 2026
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.85 KB | Jokes | 0 0
  1. import datetime
  2. import random
  3. import time
  4.  
  5.  
  6. def dramatic_pause():
  7.     print("\nProcessing life choices", end="")
  8.     for _ in range(3):
  9.         time.sleep(0.5)
  10.         print(".", end="")
  11.     print("\n")
  12.  
  13.  
  14. def monday():
  15.     print("☕ MONDAY DETECTED ☕")
  16.     print("System status: Absolutely not.")
  17.     print("Go back to bed. The world can wait.")
  18.  
  19.  
  20. def tuesday():
  21.     print("😐 It's Tuesday.")
  22.     print("At least it's not Monday.")
  23.     print("That's the whole motivational speech.")
  24.  
  25.  
  26. def wednesday():
  27.     print("🐸 WEDNESDAY 🐸")
  28.     frog_quotes = [
  29.         "It is Wednesday my dudes.",
  30.         "Halfway to freedom!",
  31.         "Ribbit your way through the week!",
  32.         "The hump has been conquered!"
  33.     ]
  34.     print(random.choice(frog_quotes))
  35.  
  36.  
  37. def thursday():
  38.     print("🔥 THURSDAY HYPE MODE 🔥")
  39.     print("Weekend loading...")
  40.     print("[███████░░░] 70%")
  41.     print("You can almost taste the freedom.")
  42.  
  43.  
  44. def friday():
  45.     print("🎉 FRIDAY!!! 🎉")
  46.     print("Deploy the snacks.")
  47.     print("Play the music.")
  48.     print("Productivity has officially left the building.")
  49.  
  50.  
  51. def saturday():
  52.     print("😎 SATURDAY 😎")
  53.     print("Relax mode activated.")
  54.     print("Nap, snacks, games, repeat.")
  55.  
  56.  
  57. def sunday():
  58.     print("📅 SUNDAY 📅")
  59.     print("Time to pretend you're going to bed early.")
  60.     print("Also time to ignore the fact tomorrow is Monday.")
  61.  
  62.  
  63. # Get current day
  64. today = datetime.datetime.now().strftime("%A")
  65.  
  66. dramatic_pause()
  67.  
  68. print(f"Today is: {today}\n")
  69.  
  70. # Match day to function
  71. days = {
  72.     "Monday": monday,
  73.     "Tuesday": tuesday,
  74.     "Wednesday": wednesday,
  75.     "Thursday": thursday,
  76.     "Friday": friday,
  77.     "Saturday": saturday,
  78.     "Sunday": sunday
  79. }
  80.  
  81. # Run the proper function
  82. days.get(today, lambda: print("Time itself has broken."))()
Advertisement
Add Comment
Please, Sign In to add comment