list ( ) to tuple in Python

 list ( ) to tuple in Python

 

it’s very simple to convert list into tuple or vice-versa in Python. For Example -

  1. list1 = [4,5,9,8,7,63] 
  2. x = tuple(list1) 
  3. print(x) 

Comments

Popular posts from this blog

Programmingshark index 6

Proassignmenthelp index 12

Proassignmenthelp index 27