The Person class includes Instructor and Student Objects. Notice the Inherited properties (Name, Address and Date of Birth). Other properties are specific to each object like Office Location for the Instructor object and GPA for the Student object.
Tag Archives: programming
How to define a main function in Python
#Defining a main function in Python def main(): print (“Hello World!”) if __name__ == “__main__”: main()
XSL For Loop Syntax for XSLT
Dictionaries in Python 3
Passing arguments to functions using Python
Python: How to initialize a 10-entry Dictionary(hash)
#initialize hash directory counts={i:0 for i in ‘0123456789’} #We have now initialized a dictionary hash named counts with 10 entries: 0-10 with each entry having a value of 0. #we display the entries of the counts dictionary by simply calling its name: counts #here is the output from my terminal