How Can We Help?
Introduction:
In this tutorial, we are going to explain how to use Python sequence to List function with basic syntax and many examples for better understanding.
Python sequence to List list(seq) function is used to convert a sequence into list.
Syntax:
list(sequence)
Input Parameters:
- sequence : The sequence of values that you want to convert them to a list.
Example
Seq = (1,2,3,4); List = list(Seq) print "elements in the list are : ", List
Output
elements in the list are : [1, 2, 3, 4]
In the above example, ‘list(Seq)’ is used to convert a sequence of values into list.
In this tutorial, you have learned how to use Python sequence to List list(seq) function.
If you have an inquiry or doubt don’t hesitate to leave them in comment. we are waiting your feedback.But remember to understand the concept very well, you need to practice more.
Hopefully, it was clear and concise.
Similar Python sequence to List Function:
- lists : is a form of data collection where different type of data can be stored and separated by commas(,).
- max(list) : It returns a minimum value of a list.
- type(list) : It returns a maximum value of a list.
- len(list) : It returns type of list , if passed variable is a list.
- min(list) : It converts a sequence/string into a list.
- del(list) : It deletes whole list or individual list element or all element of a list.
Python tutorials list:
- Python tutorials list : access all python tutorials.