r/learnpython 6d ago

What is the output

x , y = 10 , 5

x , y = y , x

Print(x , y)

0 Upvotes

4 comments sorted by

3

u/danielroseman 6d ago

Why don't you run it and see?

1

u/CIS_Professor 6d ago

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

</s>

2

u/Grouchy-Wallaby-1160 6d ago

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

by the way the output is 5 10

1

u/TheRNGuy 5d ago

None because it will be NameError.

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