Skip to main content
added 5 characters in body
Source Link
acrolith
  • 4k
  • 1
  • 24
  • 41

Python 3, 57 bytes

print(''.join(['0' if i=='1' else '1' for i in input()]))

Python

print(''.join(['0' if i=='1' else '1' for i in input()]))

Python 3, 57 bytes

print(''.join(['0' if i=='1' else '1' for i in input()]))
Source Link

Python

print(''.join(['0' if i=='1' else '1' for i in input()]))