In this program I want to remove the duplicate values from the list. This is what i wrote:
list = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89]
def loop():
    for a in range(len(list)-1):
        for b in range(a+1,len(list)):
            if list[a] == list[b]:
                del list[a]
    print(list)  
loop()
But, it's giving me this error:
Can you help me?

 
     
     
     
    