Professional Documents
Culture Documents
Tamrin 8
Tamrin 8
py :
class Restaurant :
def info(self):
print(f"this is {self.name} resturant and we are a {self.type} restaurant :)")
print("Customer Count:", self.customer_number )
def print_ice_cream_type(self):
print("Ice Cream Type:", self.ice_cream_type)
# -------------------------------------------------------------------
import random
from random import randint
shape_1 = """
-----
| |
|o|
| |
-----
"""
shape_2 = """
-----
|o |
| |
| o|
-----
"""
shape_3 = """
-----
|o |
|o|
| o|
-----
"""
shape_4 ="""
-----
|o o|
| |
|o o|
-----
"""
shape_5 ="""
-----
|o o|
|o|
|o o|
-----
"""
shape_6 ="""
-----
|o o|
|o o|
|o o|
-----
"""
dice = random.randint(1,6)
if dice == 1 :
print(shape_1)
if dice == 2 :
print(shape_2)
if dice == 3 :
print(shape_3)
if dice == 4 :
print(shape_4)
if dice == 5 :
print(shape_5)
if dice == 6 :
print(shape_6)