Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- products = []
- registered = []
- blacklist = []
- class Merchandiser:
- def add_product(self):
- products.append(input("Введите название товара: "))
- def register(self, product):
- registered.append(product)
- products.remove(product)
- class Client:
- def __init__(self, name: str):
- self.name = name
- def buy(self):
- if Client in blacklist:
- print("Ты в черном списке!")
- else:
- Merchandiser.register(input("Введите название товара: "))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement