Sind Python -Sätze veränderlich?

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Sind Python -Sätze veränderlich?

by Anonymous » 02 Mar 2025, 15:13

sind Sätze in Python mutable?

Code: Select all

x = set([1, 2, 3])
y = x

y |= set([4, 5, 6])
Werden X und y immer noch auf dasselbe Objekt hinweisen, oder wurde ein neuer Satz erstellt und Y ?

Top