Simple Siudent class example in Python

class Student:
  def __init__(self, first, last, courses=None):
    self.first_name = first
    self.last_name = last
    if courses == None:
      self.courses = []
    else:
      self.courses = courses

courses = ['python', 'java', 'javascript']

dmitri = Student("Dmitri", "Telinov")
john = Student("John", "Doe", courses)

print(dmitri.first_name, dmitri.last_name, dmitri.courses)
print(john.first_name, john.last_name, john.courses)
Output:
Dmitri Telinov []
John Doe ['python', 'java', 'javascript']