progs/catastrophic/catastrophic.python
changeset 983 ed8d8ba2cb34
parent 965 94f5cce73a4f
equal deleted inserted replaced
982:e9e5e181d9a3 983:ed8d8ba2cb34
    18 # calling the matching function
    18 # calling the matching function
    19 s = ("a" * int(cn))
    19 s = ("a" * int(cn))
    20 m = re.match('(a*)*b' , s) 
    20 m = re.match('(a*)*b' , s) 
    21 
    21 
    22 print(s)
    22 print(s)
    23 print(m)
    23 print(bool(m))