Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/janpreet/write2list
Simple python library
https://github.com/janpreet/write2list
custom-module list python tuples
Last synced: about 23 hours ago
JSON representation
Simple python library
- Host: GitHub
- URL: https://github.com/janpreet/write2list
- Owner: janpreet
- License: mit
- Created: 2020-12-23T23:31:32.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-26T16:48:03.000Z (almost 4 years ago)
- Last Synced: 2024-09-17T00:32:27.385Z (about 2 months ago)
- Topics: custom-module, list, python, tuples
- Language: Python
- Homepage: https://pypi.org/project/write2list/
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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?
```bash
pip install write2list
``````Python
# test.py
import write2listexampleTuple=(["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)
``````bash
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."]
```