progs/catastrophic2.py
changeset 538 17acdd516ccd
parent 448 96129128d0f1
--- a/progs/catastrophic2.py	Wed Nov 22 18:27:59 2017 +0000
+++ b/progs/catastrophic2.py	Wed Nov 29 08:47:22 2017 +0000
@@ -15,6 +15,7 @@
 cn = sys.argv[1]
 
 # calling the matching function
-m = re.match('(a*)*b' , "a" * int(cn)) 
+s = ("a" * int(cn))
+m = re.match('(a*)*b' , s) 
 
-print m.group(0)
+print s