Skip to main content
Commonmark migration
Source Link

##Python 3 - 50 bytes r=str.replace r(r(r(input(),'1','a'),'0','1'),'a','0')

Python 3 - 50 bytes

r=str.replace r(r(r(input(),'1','a'),'0','1'),'a','0') 

It's not as short as some of the other ones, but it takes a different approach.

##Python 3 - 50 bytes r=str.replace r(r(r(input(),'1','a'),'0','1'),'a','0')

It's not as short as some of the other ones, but it takes a different approach.

Python 3 - 50 bytes

r=str.replace r(r(r(input(),'1','a'),'0','1'),'a','0') 

It's not as short as some of the other ones, but it takes a different approach.

Source Link
daviewales
  • 281
  • 1
  • 6

##Python 3 - 50 bytes r=str.replace r(r(r(input(),'1','a'),'0','1'),'a','0')

It's not as short as some of the other ones, but it takes a different approach.