What will be the output of the following Python code? >>>list1 = [1, 3] >>>list2 = list1 >>>list1[0] = 4 >>>print(list2)Questions & Answers › Category: Programming Language › What will be the output of the following Python code? >>>list1 = [1, 3] >>>list2 = list1 >>>list1[0] = 4 >>>print(list2) -1 Vote Up Vote Down Geek Boy Staff asked 4 years ago What will be the output of the following Python code?>>>list1 = [1, 3] >>>list2 = list1 >>>list1[0] = 4 >>>print(list2)a. [1, 4] b. [1, 3, 4] c. [4, 3] d. [1, 3]Share this: Share on Facebook (Opens in new window) Facebook Share on X (Opens in new window) X Share on WhatsApp (Opens in new window) WhatsApp Print (Opens in new window) Print Share on LinkedIn (Opens in new window) LinkedIn Share on Pinterest (Opens in new window) Pinterest Like this:Like Loading...1 Answers 0 Vote Up Vote Down Geek Boy Staff answered 4 years ago c. [4, 3] Explanation: Lists should be copied by executing [:] operation.Share this: Share on Facebook (Opens in new window) Facebook Share on X (Opens in new window) X Share on WhatsApp (Opens in new window) WhatsApp Print (Opens in new window) Print Share on LinkedIn (Opens in new window) LinkedIn Share on Pinterest (Opens in new window) Pinterest Like this:Like Loading...