def getGeorge(): result = Student() # step 1 ... return result # step 3 # getGeorge ends here # main program starts here s = getGeorge()