/Text-to-Array

This is a simple Python program that will convert a list of words seperated by spaces into an array that you can then copy and use.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Text to Array

This is a very simple program that will convert a list of words into an array.

All you need to do is make sure there is a space between all your words, and the program will do the rest.

Instructions

Usage is very simple, you just write or paste your text when prompted. For example, you could write: x y z and the returned text will be [x, y, z]

Windows

If you're on windows, go into the Command Prompt and type the following:

pip install clipboard

If that doesn't work, and it gives you an error that says something similar to:

pip: command not found

Try this instead:

pip3 install clipboard

Once you have that done, you can use the program!

MacOS

Although the Windows version may work, the Mac specific one is recommended because you don't need to install anything else. You can use the program right out of the box.

Compatibility

Text to Array is compatible with Python 3.

If you have Python 2 and would still like to use the program, please do the following:

For MacOS

Change the following:

input

with

raw_input

on lines 17, 21, and 34.

For Windows

Change the following:

input

with

raw_input

on lines 11, 15, and 28.