Avatar ·

replace the number in the line

📁 Advanced Python Topics, question

x = ['27342837429']. Replace any digit in a line below 5 with "0", and any digit 5 or higher with "1".