Skip to content

Instantly share code, notes, and snippets.

@OpnSrcConstruction
Created April 9, 2019 21:01
Show Gist options
  • Save OpnSrcConstruction/9fa1fabe633b66241d34f0b04bb8216a to your computer and use it in GitHub Desktop.
Save OpnSrcConstruction/9fa1fabe633b66241d34f0b04bb8216a to your computer and use it in GitHub Desktop.
Python example: convert tuple2list #python #tuple #list #convert
'''
@author: kjlw99
'''
aTuple = (123, 'xyz', 'zulu', 'abc');
aList = list(aTuple)
print "The List elements are: ", aList
OUTPUT:
The List elements are: [123, 'xyz', 'zulu', 'abc']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment