From 36662ed9afffec57bc3ed0c79bccd3126d933fde Mon Sep 17 00:00:00 2001 From: itsGarrin Date: Sun, 5 Nov 2023 19:28:17 -0500 Subject: ZESTY AHHHHHHHHHH --- utils.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 utils.py (limited to 'utils.py') 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 -- cgit v1.2.3