Articles → Python → Convert a list to a tuple using the tuple function in python

Convert a list to a tuple using the tuple

function in python






Example


list = [10,5,7,22,11,17]

print (list)

list = tuple(list)

print(list)















Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Tuesday, February 26, 2019

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250