deadtom 4 nedēļas atpakaļ
vecāks
revīzija
7f8f132bb8
1 mainītis faili ar 19 papildinājumiem un 8 dzēšanām
  1. 19 8
      README.md

+ 19 - 8
README.md

@@ -6,20 +6,31 @@ I have it pre-populated with lists of characters from Looney Tunes, Lego City Un
 
 
 
-### Configuring the script
+### Choosing a list
 
 You'll find the following entry near the bottom of the script:
 
-```data = {"value": list_name_no_quotes}
-```
+    ```
+    list_name = list_you_want_to_use
+    ```
 
-Be sure to change list_name_no_quotes to the name of the list you'd like to use. As the temporary name suggests, do not enclose the list name in quotes.
+Be sure to change list_name = list_you_want_to_use to the name of the list you'd like to use. Do not enclose the name in quotes.
 
-### Running the script
+### Creating your own list
 
-From the command line, enter the folder containing chatnames.py, and run the following command:
+If you're not familiar with python lists, they're pretty straight forward. Just follow the following format:
+
+    ```my_name = ["Bob", "Joe", "Sue"]
+    ```
+Make sure each of the names are enclosed in double quotes, with a comma and then a space between names. The last name in the list does not require a trailing comma or space.
+
+Enclose the whole (after the = sign) list in standard brackets.
 
-```python3 chatnames.py
-```
+You can find a more detailed tutorial [here](https://www.w3schools.com/python/python_lists.asp).
 
+### Running the script
+
+From the command line, enter the folder containing chatnames.py, and run the following command:
 
+    ```python3 chatnames.py
+    ```