Example & Tutorial understanding programming in easy ways.

Write a program to swap two variable in one line of code in Python.

program:

a=10

b=5

print(a,b)

a,b=b,a

print(a,b)

output:

10,5

5,10

Read More →