Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Topic:
- def __init__(self, id, topic, storage_folder):
- self.id = id
- self.topic = topic
- self.storage_folder = storage_folder
- def edit(self, new_topic, new_storage_folder):
- self.topic = new_topic
- self.storage_folder = new_storage_folder
- def __repr__(self):
- return f"Topic {self.id}: {self.topic} in {self.storage_folder}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement