I'm having trouble understanding what people mean when they say "random.shufle shuffles the sequence 'in-place'" when referring to why directly printing out random.shuffle returns the value 'None' instead of just the shuffled list itself.
Referring to the answers of this question in specific.
What does 'in place' exactly mean here? Please explain in newbie terms if possible, beginner here. Thank you.
talking about this bit of code
import random
b = [object(), object()]
print(random.shuffle(b))
which prints out:
None
Another question like this exists on here but it doesn't explain is simple/beginner terms, more complex ones.