But this exact example is different, because the critical step of mutation is missing.
The initial line is the same, but:
a = b = random.random()
a += 1
a == b # False
Only because floats are immutable and thus an implicit copy is made and lists are mutable so the same mutable instance is pointed to by both names.This talk still applies despite its age: https://youtu.be/_AEJHKGk9ns?si=q5HjMOM9QS3_bFzH