Ad
  • Custom User Avatar

    list.index(num) always return the first index which equal to the num

    for example :
    a = [2,3,3,2]
    a.index(2) -> 0
    a.index(3) -> 1