Skip to main content

Convert a tuple of lists to a list.

Project description

write2list

A simple python package which accepts a Tuple of Lists and converts it to a List. I wrote this to learn how custom packages work in Python. Here is the quick difference between a Tuple and a List-

Tuple List
Immutable bindings Mutable via Append and Extend

How to use?

pip install write2list
# test.py
import write2list

exampleTuple=(["Hi I am the first example list"], ["123456"], ["Wow these are one too many lists for a simple example. Let's end this object here."])

resultList=write2list.create(exampleTuple)

print(resultList)
python test.py
['Hi I am the first example list', '123456', "Wow these are one too many lists for a simple example. Let's end this object here."]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

write2list-1.1.tar.gz (1.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page