Apr-22-2025, 06:55 PM
how do I get the variable holding the data
something like this
something like this
class Student: def __init__(self, name): self.name = name def display(self): print(f'Hello! My name is: {self.name}') def get_var(self): # code that will return the variable "tim" tim = Student('tim')