Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Python classes and init method
Post: RE: Python classes and init method

(Apr-02-2017, 07:57 PM)wavic Wrote: Hello! Get rid of          self.request_id = request_id  # Here I am setting the variables for the instance         self.password = password         self.name = ...
Alaweey98 Homework 9 7,092 Apr-02-2017, 08:03 PM
    Thread: Python classes and init method
Post: RE: Python classes and init method

(Apr-02-2017, 07:36 PM)ichabod801 Wrote: You could put it in the __init__ when you set the attributes, but I wouldn't recommend that. I would typically have a function that gets all the required inp...
Alaweey98 Homework 9 7,092 Apr-02-2017, 07:44 PM
    Thread: Python classes and init method
Post: RE: Python classes and init method

(Apr-02-2017, 07:28 PM)ichabod801 Wrote: User input is usually done with the input function. I wouldn't think the request_id would be given by the user, I would have that set by the program. But a t...
Alaweey98 Homework 9 7,092 Apr-02-2017, 07:35 PM
    Thread: Python classes and init method
Post: Python classes and init method

Hi, I have to create  a Request class with suitable attributes to hold the request Id, password, name (first and surname), programme, year of study, campus location, module name and a list of availabl...
Alaweey98 Homework 9 7,092 Apr-02-2017, 06:58 PM

User Panel Messages

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