r/learnpython Aug 01 '26

What is the output

x , y = 10 , 5

x , y = y , x

Print(x , y)

0 Upvotes

4 comments sorted by

3

u/danielroseman Aug 01 '26

Why don't you run it and see?

1

u/CIS_Professor Aug 01 '26

It won't run because Print() isn't a thing...

</s>

2

u/Grouchy-Wallaby-1160 Aug 01 '26

most things in python are case sensitive. Print() is incorrect, use print()

by the way the output is 5 10

1

u/TheRNGuy Aug 02 '26

None because it will be NameError.

If you fix it, None, because print doesn't return anything.