Skip to main content
added 42 characters in body
Source Link
Rod
  • 18.4k
  • 4
  • 31
  • 89

Python 2, 5454 52 bytes

-2 bytes thanks to xnor

k='unknown'k='unknowns'
for i in 8,6,2,0:print k[i/3:]7],k[i%3:]+'s']

Try it online!Try it online!

The results from the / and % will be [[2, 2], [2, 0], [0, 2], [0, 0]] that will be the starting indexes, removing the un when 2, keeping the string unaltered when 0

Python 2, 54 bytes

k='unknown'
for i in 8,6,2,0:print k[i/3:],k[i%3:]+'s'

Try it online!

The results from the / and % will be [[2, 2], [2, 0], [0, 2], [0, 0]] that will be the starting indexes, removing the un when 2, keeping the string unaltered when 0

Python 2, 54 52 bytes

-2 bytes thanks to xnor

k='unknowns'
for i in 8,6,2,0:print k[i/3:7],k[i%3:]

Try it online!

The results from the / and % will be [[2, 2], [2, 0], [0, 2], [0, 0]] that will be the starting indexes, removing the un when 2, keeping the string unaltered when 0

deleted 5 characters in body
Source Link
Rod
  • 18.4k
  • 4
  • 31
  • 89

Python 2, 54 bytes

k='unknown'
for i in 8,6,2,0:print k[i/3:],k[i%3:]+'s'

Try it online!

The results from the / and % will be [[2, 2], [2, 0], [0, 2], [0, 0]] that will be the starting indexes, removing the un when 2, keeping the string unaltered when 0

Python 2, 54 bytes

k='unknown'
for i in 8,6,2,0:print k[i/3:],k[i%3:]+'s'

Try it online!

Python 2, 54 bytes

k='unknown'
for i in 8,6,2,0:print k[i/3:],k[i%3:]+'s'

Try it online!

The results from the / and % will be [[2, 2], [2, 0], [0, 2], [0, 0]] that will be the starting indexes, removing the un when 2, keeping the string unaltered when 0

deleted 5 characters in body
Source Link
Rod
  • 18.4k
  • 4
  • 31
  • 89

Python 2, 5854 bytes

k='known'k='unknown'
for i in 08,16,2,30:print ik[i/2*'un'+k3:],i%2*'un'+k+'s'k[i%3:]+'s'

Try it online!Try it online!

Python 2, 58 bytes

k='known'
for i in 0,1,2,3:print i/2*'un'+k,i%2*'un'+k+'s'

Try it online!

Python 2, 54 bytes

k='unknown'
for i in 8,6,2,0:print k[i/3:],k[i%3:]+'s'

Try it online!

Source Link
Rod
  • 18.4k
  • 4
  • 31
  • 89
Loading