Done?
This commit is contained in:
commit
368e2a271c
9 changed files with 115 additions and 0 deletions
11
media.py
Normal file
11
media.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
from dataclasses import dataclass
|
||||
|
||||
@dataclass
|
||||
class Media:
|
||||
def __init__(self, title, year):
|
||||
self.year = year
|
||||
self.title = title
|
||||
|
||||
|
||||
def print_details(self):
|
||||
print(f"Media: {self.title}, {self.year}")
|
||||
Loading…
Add table
Add a link
Reference in a new issue