+
Store
CashRegister.py
Store.py
Product.py
1 class Store:
2
3
from Product.py import Product
4
from CashRegister.py import CashRegister
5
6
7
8
products = []
9
matches1 = []
10
matches2 = []
11
12
def __init__(self):
13
14
15
16
17
18
self.products.append(Product("Whiteboard Marker", 85, 1.50))
self.products.append(Product("Whiteboard Eraser", 45, 5.00))
self.products.append(Product("Black Pen", 100, 1.50))
self.products.append(Product("Red Pen", 100, 1.50))
self.products.append(Product ("Blue Pen", 100, 1.50))
self.cash_in_cash_register = CashRegister ()
19
20
def product(self, name):
21
22
for product in self.products:
/home/Store.py 4:25 Spaces: 4 (Auto)
if
namo
product
namo
Console
Terminal
Traceback (most recent call last):
File "/home/Store.py", line 1, in <module>
class Store:
File "/home/Store.py", line 3, in Store
from Product.py import Product
File "/home/Product.py", line 3
cash = 0.0
A
IndentationError: expected an indented block after class definition on line 1