summaryrefslogtreecommitdiff
path: root/utils.py
diff options
context:
space:
mode:
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