on Variables: Why "y = x" Can Give You Two Very Different Results** Have you ever written this? x = 10 y = x x = 20 print(x) print(y) You probably expect: 20 10 And you're right. Now change only a few lines: x = [10, 20, 30] y = x y.append(40) print(x) print(y) The result is: [10, 20, 30, 40] [10, 20, 30, 40] Wait. You changed "y". Why did "x"... Weiterlesen
Intelligence View
⚡ tsecurity.de Intelligence
SOCIAL SHARE CARD GENERATOR