Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Why does this work and this doesnt=
Post: Why does this work and this doesnt=

x = [0,0] print(x) def incrment(): x[0] = 1 x[1] = 2 incrment() print(x) y = [0,0] print(y) def increment(): y = [1,2] increment() print(y)why does the first code work and the second doesnt!!
puruvaish24 General Coding Help 1 2,601 May-22-2018, 03:09 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020