x = ['27342837429']. Replace any digit in a line below 5 by & laquo; 0 & raquo;, and any number 5 or higher on & laquo; 1 & raquo;.
question@mail.ru
·
01.01.1970 03:00
replace the number in the line
answer@mail.ru
·
01.01.1970 03:00
as an option
'' .join ( '0' if int (i) & lt; 5 else for i in x [ 0 ])