So i have class which construct i already have made and i need to make function for str print method. And i dont know how to call that str method in other functions of the same class
Here is the construct and str method
class Movie:
def __init__(nameofmovie,dateofpremiere,howlong,typeofmovie):
self.nameofmovie=nameofmovie
self.dateofpremiere=dateofpremiere
self.howlong=howlong
self.typeofmovie=typeofmovie
def __str__(self):
print(+self.nameofmovie, +str(self.dateofpremiere), +str(self.howlong),+self.typeofmovie)
Now how i can call that str method in other functions.