Example & Tutorial understanding programming in easy ways.

How we can convert a list to tuple in Python ?

program:

l=[1,2,3,4]

t=tuple(l)

print(t)

output:

(1,2,3,4)

Read More →