Update.
authorFrançois Fleuret <francois@fleuret.org>
Wed, 5 Jul 2023 14:32:52 +0000 (16:32 +0200)
committerFrançois Fleuret <francois@fleuret.org>
Wed, 5 Jul 2023 14:32:52 +0000 (16:32 +0200)
expr.py

diff --git a/expr.py b/expr.py
index ca33daf..e073dca 100755 (executable)
--- a/expr.py
+++ b/expr.py
@@ -78,7 +78,7 @@ def generate_sequences(nb, nb_variables=5, length=20, randomize_length=False):
 
         k = list(result.keys())
         k.sort()
-        sequences.append(p + " " + ";".join([v + ":" + str(result[v]) for v in k]))
+        sequences.append(p + " " + "".join([v + ":" + str(result[v]) + ";" for v in k]))
 
     return sequences