Part of

Programming Languages

  • Classes
class TestClass():
	global_variable = "This is a global variable"
	def__init__(self,student="name of student",
	            grade="grade of student",
			    major="major of student"):
	self.name = student
	self.grade = grade
	self.major = major
 
def __str__(self):
 
def __ge__(self,other):
'''overloading >='''
	if self.name >= other.name:
	  return True
	else:
	  return False
 
def _internal_use_only(self):
#can still be called directly
  • Class attributes are meant to be global across all instances

  • Operator Overloading

  • Modules

    • Interpreter checks

      • built-in modules

      • sys.path

    • After creating my_functions.py:

def main():
    print("Hello World!")
 
if __name__ == "__main__":
    main()
  • Packages

  • Standard Library

    • datetime

    • random

    • copy

    • time

    • math

    • os

    • sys

    • urlib