Author: Not specified Language: text
Description: Not specified Timestamp: 2018-03-23 03:53:47 +0000
View raw paste Reply
  1. >>> l1 = []
  2. >>> for z in b:
  3. ...  for y in z:
  4. ...   if y == '':
  5. ...    y = "Unknown"
  6. ...   l1.append(y)
  7. ...  "|".join(l1)
  8. ...  l1 = []
  9. ...
  10. u'Will Jones|209 Willowbrook Rd, Harttfird, CT 06416-2505|Unknown|Unknown'
  11. u'William X Jones|500 Old Colony Rd , Hartford, CT 06451-7925|41|Unknown'
  12.  
View raw paste Reply