private class method python

class Student:
  def __init__(self):
    pass
  
  
  # The double underscore in the front makes it private
  def __print_name(self):
    return print("private")
  
  
  # proof of use
  def print_name(self):
    return print("public")

Here is what the above code is Doing:
1. We created a class called Student
2. We created a private method called __print_name
3. We created a public method called print_name
4. We call the private method from the public method
5. We call the public method