I would like to know where am lagging, Looking for your advices..
class Student_Record(object):
def __init__(self,s):
self.s=\"class_Library\"
if you do
class Student_Record(object):
def __init__(self, s):
self.s = ""
def Student_details(self):
print " Please enter your details below"
when you create the object of class Student_Record it should accept a parameter despite for itself (self). so it looks like:
record = Student_Record("text")
and in __init__ you can do whatever with the passed-in variable s. For example, self.s = s and you can call it anywhere in the class with self.s because it has been initialized.