Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Classes and Methods
Post: RE: Classes and Methods

(Nov-21-2018, 02:25 PM)Gribouillis Wrote: Use a modified attribute to avoid clashes between the property and the attribute, for example @property def name(self): return self._nameAh thank you ve...
thraxas Homework 8 4,378 Nov-21-2018, 02:49 PM
    Thread: Classes and Methods
Post: RE: Classes and Methods

ok i guess something like that? class Student: def __init__(self, name, imt_name, semester, *args, **kwargs): self.name = name self.imt_name = imt_name self.semester = sem...
thraxas Homework 8 4,378 Nov-21-2018, 02:22 PM
    Thread: Classes and Methods
Post: RE: Classes and Methods

Thanks for your replies. we have already given something to check it with: assert type(Student) is type student_jack = Student("Jack", "jack99", 20) assert student_jack.name == "Jack" assert student...
thraxas Homework 8 4,378 Nov-21-2018, 10:44 AM
    Thread: Classes and Methods
Post: Classes and Methods

Hello everyone, started this semester with programming in python, and now we have a task where i dont know how to program it. We get an UML diagram with two classes, one is "student", the other "unic...
thraxas Homework 8 4,378 Nov-21-2018, 10:10 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020