Based on the following code, which s Question

Question

Based on the following code, which statement is true?

>>> F = [2, 4, 6]
>>> G = F
>>> G.append(10)

Responses

  • An error occurs. An error occurs.
  • 10 will be added to both F and G. 10 will be added to both F and G.
  • 10 will be added to F only. 10 will be added to F only.
  • 10 will be added to G only.


Details
Purchase An Answer Below

Have a similar question?