Skip to content

Commit ab1c48c

Browse files
committed
line 45 x.name changed to x.genre
1 parent 91bfe7c commit ab1c48c

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

OOP/C.Exam Preparation/Python OOP Retake Exam - 19 December 2022/Structure and Functionality/project/concert_tracker_app.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def create_band(self, name: str):
4242

4343
def create_concert(self, genre: str, audience: int, ticket_price: float, expenses: float, place: str):
4444
if place in [x.place for x in self.concerts]:
45-
raise Exception(f"{place} is already registered for {[x.name for x in self.concerts if x.place == place][0]} concert!")
45+
raise Exception(f"{place} is already registered for {[x.genre for x in self.concerts if x.place == place][0]} concert!")
4646

4747
concert = Concert(genre, audience, ticket_price, expenses, place)
4848
self.concerts.append(concert)

0 commit comments

Comments
 (0)