I am trying to swap the last item with the biggest number in the list but it doesn't print anything

```
a=[3,4,2,2,43,7]
maxindex=0
for i in range(len(a)):
    if a[i] is max(a):
        maxno = a[i]
        maxindex = i
if a[maxindex] < a[len(a)-1]:
    a[maxindex],a[len(a)-1] = a[len(a)-1],a[maxindex] 
    print(a)

```

expected result is `[3,4,2,2,7,43]`