- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathex2.py
More file actions
Latest commit
11 lines (9 loc) · 425 Bytes
/
Copy pathex2.py
File metadata and controls
11 lines (9 loc) · 425 Bytes
1
2
3
4
5
6
7
8
9
10
11
# We've already defined a movie class like this:
classMovie:
def__init__(self, new_name, new_director):
self.name=new_name
self.director=new_director
defprint_info(self):
print(f"<< {self.name} >> by {self.director}")
# let's try to add a method `print_info()` here:
# You only need to finish the method, we will take care of the object creation and call your method for you!