mylist=[1,2,3]

class Movie():
    def __init__(self, title,  director, duration):
        self.title= title
        self.director=director
        self.duration= duration
        print("movie objesi oluşturuldu .")

    def __str__(self):
        return f"{self.title} by {self.director} "

    def __len__(self):
        return self.duration

    def __del__ (self):
        print("movie sil indi")      

m=Movie("film adı", "yönetmen adı ", 120)
"""
print(mylist)
print(m)
print(len (mylist))
print(len (m))"""


