progs/catastrophic/catastrophic2.py
changeset 753 d94fdbef1a4f
parent 742 b5b5583a3a08
--- a/progs/catastrophic/catastrophic2.py	Tue Sep 01 16:00:37 2020 +0100
+++ b/progs/catastrophic/catastrophic2.py	Wed Sep 02 23:34:19 2020 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 import re
 import sys
 
@@ -9,7 +9,7 @@
 #
 # call with timing as:
 #
-#    time ./catastrophic.py 20
+#    time ./catastrophic2.py 20
 
 # counter n given on the command line
 cn = sys.argv[1]
@@ -18,4 +18,5 @@
 s = ("a" * int(cn))
 m = re.match('(a*)*b' , s) 
 
-print s
+print(s)
+print(m)