• Post author:
  • Post category:Blog
  • Reading time:1 mins read
  • Post last modified:June 12, 2024

What is the output of the following snippet?

x = 1
y = 2
z = x
x = y
y = z
print (x, y)
  • 1 1
  • 1 2
  • 2 2
  • 2 1
    Options 4 is the answer
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments