The first didn't check for 3. It just check two duplicate values.
3
To test just use two 4s.
4
The second is good. if you want to know more just search python slicing.
you might want to change this line if i==j to: if i == j == 3
if i==j
if i == j == 3