How to Convert Tuple into List and String into List ? | Anika Technologies

Опубликовано: 14 Март 2026
на канале: Anika Technologies
61
1

In this tutorial video, you will learn how to convert tuple into List and String into List. Python tuples are a data structure that store an ordered sequence of values. Tuples are immutable. This means you cannot change the values in a tuple. ... They let you store an ordered sequence of items. Python list method list() takes sequence types and converts them to lists. This is used to convert a given tuple into list. Note − Tuple are very similar to lists with only difference that element values of a tuple can not be changed and tuple elements are put between parentheses instead of square bracket.
Python String is a sequence of characters. We can convert it to the list of characters using list() built-in function. ... If you don't want the leading and trailing whitespaces to be part of the list, you can use strip() function before converting to the list.

Have a question on Python Data Types? Please share it in the comment section below and our experts will answer to you.
For more information, please write back to us at [email protected] or call us at IND: 91-7719882295; 9730463630 / USA +1 315-636-0645
Follow us :
Facebook:   / anikatechnologies  
Linkedin:   / anika-technologies