a = [None, None, '2014-04-27 17:31:17', None, None]
trying to replace None with ''
tried many times, this the closest I got. b= ['' for x in a if x==None] which gives me four '' but leaves out the date
i thought it would be b= ['' for x in a if x==None else x] but doesn't work.
what if it is nested like so:
a = [[None, None, '2014-04-27 17:31:17', None, None],[None, None, '2014-04-27 17:31:17', None, None],[None, None, '2014-04-27 17:31:17', None, None]]
Can you still use list comprehensions?
 
     
     
     
     
    