Created
June 12, 2015 14:41
-
-
Save krazylearner/dfc8bf5ce77d0aad41b3 to your computer and use it in GitHub Desktop.
Python List list() Method
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| The method list() takes sequence types and converts them to lists. This is used to convert a given tuple into list. | |
| aTuple = (123, 'xyz', 'zara', 'abc'); | |
| aList = list(aTuple) | |
| print "List elements : ", aList | |
| #When we run above program, it produces following result: | |
| List elements : [123, 'xyz', 'zara', 'abc'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment