python3 mystery

Jude DaShiell jdashiel at
Tue Sep 15 10:54:51 UTC 2015

Script started on Tue 15 Sep 2015 06:34:47 AM EDT
jude at iceberg:~$ cat
import re
examplestring='''Jessica is 15 years old and Daniel is 27 years old
  Edward is 97 years old and his grandfather  Oscar is 102.'''
jude at iceberg:~$ python3
jude at iceberg:~$ exit

Script done on Tue 15 Sep 2015 06:35:38 AM EDT
Why don't the names and ages lists get populated from exampleString then 
return names and ages in the examplestring vriable?  This is a worked 
regular expressions exmple on and as 
near as I can tell I keyed it in correctly.


More information about the Blinux-list mailing list