def outputRecord(x): print(x.name) ... #outputRecord ends here # main program starts here ... s = Student() ... outputRecord(s); ...