Esempio n. 1
0
# 9.10 - Imported Restaurant
from restaurant import Restaurant, IceCreamStand

my_stand = IceCreamStand('Wonderland')
my_stand.describe_restaurant()
my_stand.describe_flavors()
Esempio n. 2
0
#! python3

print("Task 9.10")

from restaurant import Restaurant, IceCreamStand

ice = IceCreamStand('Ice World')
ice.flavors = ['banana', 'vanilla', 'chocolate']

ice.describe_restaurant()
ice.describe_flavors()

print("Task 9.11")

from users import Admin

adrian = Admin('adrian', 'szymanski', 'zeus', '*****@*****.**',
               'adrian88szymanski', 'sport', 'poland')
adrian.describe_user()

adrian.privileges.show_privileges()

print("\nAdding privileges...")
adrian_privileges = [
    'can add posts',
    'can remove posts',
    'can suspend accounts',
]
adrian.privileges.privileges = adrian_privileges
adrian.privileges.show_privileges()