Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
59 lines (52 loc) · 2.4 KB

File metadata and controls

59 lines (52 loc) · 2.4 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import random
from dataclasses import dataclass
from typing import List, Dict
from datetime import datetime
@dataclass
class Kevin:
name: str
favorite_chili: str
desk_location: str
famous_quote: str
class KevinSecretSanta:
def __init__(self):
self.kevins: List[Kevin] = [
Kevin("Kevin Malone", "Famous Chili", "Accounting Corner", "Why waste time say lot word when few word do trick"),
Kevin("Kevin McCallister", "Microwave Mac & Chili", "Home Alone", "This is my house, I have to defend it"),
Kevin("Kevin Hart", "Comedy Chili", "Stage Left", "Everybody wants to be famous, but nobody wants to do the work"),
Kevin("Kevin Bacon", "Six Degrees of Chili", "Hollywood", "Everything is connected by six degrees of separation"),
Kevin("Kevin Durant", "Championship Chili", "Basketball Court", "Hard work beats talent when talent fails to work hard"),
Kevin("Kevin James", "Mall Cop Chili", "Segway Station", "Safety never takes a holiday"),
]
self.assignments: Dict[Kevin, Kevin] = {}
def assign_secret_santas(self) -> None:
recipients = self.kevins.copy()
for giver in self.kevins:
while True:
recipient = random.choice(recipients)
if recipient != giver:
self.assignments[giver] = recipient
recipients.remove(recipient)
break
def print_assignments(self) -> None:
print("\n🎅 KEVIN-THEMED SECRET SANTA ASSIGNMENTS 🎅")
print("=" * 50)
for giver, recipient in self.assignments.items():
print(f"\n{giver.name} is getting a gift for {recipient.name}")
print(f"Recipient's favorite chili: {recipient.favorite_chili}")
print(f"Find them at: {recipient.desk_location}")
print(f"Famous quote: '{recipient.famous_quote}'")
def spill_chili(self) -> str:
return """
⠀⠀⠀⠀⠀⠀⠀🌶️ Oh no! The chili! 🌶️
⠀⠀⠀⠀⠀⠀⠀ ___________
⠀⠀⠀⠀⠀⠀⠀ / \\
⠀⠀⠀⠀⠀⠀⠀ | * splat * |
⠀⠀⠀⠀⠀⠀⠀ \\___________ /
"""
if __name__ == "__main__":
santa = KevinSecretSanta()
santa.assign_secret_santas()
santa.print_assignments()
print(santa.spill_chili())
print("\nThe trick is to undercook the onions...")
Morty Proxy This is a proxified and sanitized view of the page, visit original site.