summaryrefslogtreecommitdiff
path: root/utils.py
diff options
context:
space:
mode:
authoritsGarrin <garrin.shieh@gmail.com>2023-11-05 19:28:17 -0500
committeritsGarrin <garrin.shieh@gmail.com>2023-11-05 19:28:17 -0500
commit36662ed9afffec57bc3ed0c79bccd3126d933fde (patch)
tree651af0aa8a373e605317d31346fc04d703ddf9e3 /utils.py
parent4be1beb53555847b1eaee9be1940e30da824280a (diff)
ZESTY AHHHHHHHHHH
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/utils.py b/utils.py
new file mode 100644
index 0000000..f250a9c
--- /dev/null
+++ b/utils.py
@@ -0,0 +1,10 @@
+# make a function that turns a list of lists of coordinates into a string
+
+def list_to_string(list_of_lists):
+ """
+ Takes a list of lists of coordinates and returns a string of the coordinates
+ """
+ string = ''
+ for i in list_of_lists:
+ string += str(i[1]) + ',' + str(i[0]) + ';'
+ return string \ No newline at end of file