eski programmer'och ๐ What is the output of the following code? Why? first = [1, 2, 3, 4, 5] second = first second.append(6) print(first) print(second)
Jan 24, 2022[1, 2, 3, 4, 5, 6] [1, 2, 3, 4, 5, 6] in python and Js arrays are not primitive (value) data types , they are reference type , so when you assign "second" variable to "first" assign yemiyaregew ke value ga sayhone ke reference(address) gar new so every time change benore kutr yangnawum yikeyeral
Jan 25, 2022