Convert list to tuple || Tuples || Python

In this we are going to see a basic program to Convert list to tuple in Python Programming Language.

listx = [5, 10, 7, 4, 15, 3]
print(listx)
# use the tuple() function built-in Python, passing as parameter the list
tuplex = tuple(listx)
print(tuplex)

# Code  by Shrinivas

#ENJOY CODING

Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post