Advertisement
horozov86

Document_Management_Class_Topic

Jul 10th, 2023
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.40 KB | None | 0 0
  1. class Topic:
  2.     def __init__(self, id, topic, storage_folder):
  3.         self.id = id
  4.         self.topic = topic
  5.         self.storage_folder = storage_folder
  6.        
  7.     def edit(self, new_topic, new_storage_folder):
  8.         self.topic = new_topic
  9.         self.storage_folder = new_storage_folder
  10.        
  11.     def __repr__(self):
  12.         return f"Topic {self.id}: {self.topic} in {self.storage_folder}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement