<gh_stars>0
"""Given a string of digits, 
you should replace any digit below 5 with '0' 
and any digit 5 and above with '1'.
Return the resulting string."""
def fake_bin(x):
  return ''.join('0' if c < '5' else '1' for c in x)       
print(fake_bin('1218'))   

"""Given a string of digits, 
you should replace any digit below 5 with '0' 
and any digit 5 and above with '1'.
Return the resulting string."""
def fake_bin(x):
  return ''.join('0' if c < '5' else '1' for c in x)       
print(fake_bin('1218'))
Given a string of digits,  you should replace any digit below 5 with '0'  and any digit 5 and above with '1'. Return the resulting string.