I have a list which contains looks like the following:

```
lst = [40, 40, 40, 40]

```

I would like to print success only if all the values in the list are 40, else failure. How do I do that?

What I tried so far?

```
if(len(set(lst))==1)
   print("Success")
else:
   print("Failure")

```

This prints success but it also prints success if all the values in the list are [1,1,1,1].