Shlomo K Script

A script that emulates Shlomo Karhi as a minister
 avatar
unknown
python
2 years ago
1.1 kB
13
Indexable
import random

class IncompetentMinister:
    def __init__(self, name):
        self.name = name
        self.public_money = 1000000
        self.stupid_decisions = 0

    def spend_money(self):
        amount = random.randint(1, self.public_money)
        self.public_money -= amount
        self.stupid_decisions += 1
        print(f"{self.name} just spent {amount} dollars on a ridiculous project!")

    def make_speech(self):
        speeches = [
            "Let's print more money to solve poverty!",
            "We should invest in ice factories for the Arctic!",
            "High taxes will lead to infinite prosperity!",
            "Why not buy the moon and charge people for its use?"
        ]
        print(f"{self.name} says: {random.choice(speeches)}")

    def report(self):
        print(f"{self.name} has spent {1000000 - self.public_money} dollars and made {self.stupid_decisions} embarrassingly stupid decisions so far.")

minister = IncompetentMinister("ShlomoK")

for _ in range(20):
    if random.random() > 0.5:
        minister.spend_money()
    else:
        minister.make_speech()

minister.report()
Editor is loading...