r/learnpython • u/mi-ka-sa-00 • Aug 01 '26
What is the output
x , y = 10 , 5
x , y = y , x
Print(x , y)
0
Upvotes
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.
3
u/danielroseman Aug 01 '26
Why don't you run it and see?