This is too easy

What does the following code produce?

1
2
3
4
5
x=5
y=3

print ("x")
print ("y")



Written in python 3.6

Line 1: x y Error Line 1: x Line 2: y Line 1: 5 Line 2: 3

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Just run the code :)

1
2
3
4
5
x=5
y=3

print ("x")
print ("y")

1
2
x
y

Lâm Lê
Jul 14, 2020

The x and y are put into quotes; making it simply print the strings: x and y.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...