forked from ela-oh-fuck-i-forgot-an-l/Weltformel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
22 lines (15 loc) · 725 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from random import randint, getrandbits
import sys
class Hurensohn:
def __init__(self, name: str, hurensohn_level: int, kamel: bool):
self.name = name
self.hs_lvl = hurensohn_level
self.kamel = kamel
def to_lesbar(self) -> str:
return "Hallo, ich bin " + self.name + ", " + ("ein" if self.kamel else "kein") + " Kamel, mit einem hs level von " + str(self.hs_lvl) + "!"
hses = [Hurensohn("Klaus", 5, True), Hurensohn("Peter", 15, False), Hurensohn("Lennart", 0, True), Hurensohn("Nolram", 5000, False)]
for iglu in range (7949999995):
hses.append(Hurensohn(f"Mennsch Nr. {iglu}", randint(0, 5000), bool(getrandbits(1))))
for hs in hses:
print(hs.to_lesbar(), end="Der nächste Vogel ist: ")
sys.exit(42)