Ad
  • Default User Avatar

    Hi,

    I was fiddling around with this little bit and I have noticed that "nums.pop()" gives the "nums[0]" value.

    For example, when there was more than one values of "nums", nums.pop() will always spit out the first number in the list.

    I thought set.pop() picks randomly.

    Is there something that I am missing?

    Can someone please explain why its not picking out randomely?

    Thank you.