Skip to main content
added 103 characters in body
Source Link
Jonathan Allan
  • 110.1k
  • 7
  • 65
  • 282

Python 3Python 2,  126 120  120112 bytes

-8 bytes thanks to Anders Kaseorg (I thought I'd migrated this from Python 3, but turns out I'd forgotten!)

A port of my Jelly answer works well in Python too...

for w in"agar abreacts acknowledges codeterminations deindustrializations".split():print( w[2:-1],w[2:],w[:-1],w,end=' ')

Try it online!Try it online!

Prints:

a ar aga agar react reacts abreact abreacts knowledge knowledges acknowledge acknowledges determination determinations codetermination codeterminations industrialization industrializations deindustrialization deindustrializations 

Python 3,  126  120 bytes

A port of my Jelly answer works well in Python too...

for w in"agar abreacts acknowledges codeterminations deindustrializations".split():print(w[2:-1],w[2:],w[:-1],w,end=' ')

Try it online!

Prints:

a ar aga agar react reacts abreact abreacts knowledge knowledges acknowledge acknowledges determination determinations codetermination codeterminations industrialization industrializations deindustrialization deindustrializations 

Python 2,  126 120  112 bytes

-8 bytes thanks to Anders Kaseorg (I thought I'd migrated this from Python 3, but turns out I'd forgotten!)

A port of my Jelly answer works well in Python too...

for w in"agar abreacts acknowledges codeterminations deindustrializations".split():print w[2:-1],w[2:],w[:-1],w,

Try it online!

Prints:

a ar aga agar react reacts abreact abreacts knowledge knowledges acknowledge acknowledges determination determinations codetermination codeterminations industrialization industrializations deindustrialization deindustrializations 
added 11 characters in body
Source Link
Jonathan Allan
  • 110.1k
  • 7
  • 65
  • 282

Python 3, 126 126  120 bytes

A port of my Jelly answer works well in Python too...

print(*('for 'w in"agar abreacts acknowledges codeterminations deindustrializations".joinsplit([w[2):print(w[2:-1],w[2:],w[:-1],w])for w in"agar abreacts acknowledges codeterminations,end=' deindustrializations".split())')

Try it online!Try it online!

Prints:

a ar aga agar react reacts abreact abreacts knowledge knowledges acknowledge acknowledges determination determinations codetermination codeterminations industrialization industrializations deindustrialization deindustrializations
  

Python 3, 126 bytes

A port of my Jelly answer works well in Python too...

print(*(' '.join([w[2:-1],w[2:],w[:-1],w])for w in"agar abreacts acknowledges codeterminations deindustrializations".split()))

Try it online!

Prints:

a ar aga agar react reacts abreact abreacts knowledge knowledges acknowledge acknowledges determination determinations codetermination codeterminations industrialization industrializations deindustrialization deindustrializations
 

Python 3,  126  120 bytes

A port of my Jelly answer works well in Python too...

for w in"agar abreacts acknowledges codeterminations deindustrializations".split():print(w[2:-1],w[2:],w[:-1],w,end=' ')

Try it online!

Prints:

a ar aga agar react reacts abreact abreacts knowledge knowledges acknowledge acknowledges determination determinations codetermination codeterminations industrialization industrializations deindustrialization deindustrializations 
Source Link
Jonathan Allan
  • 110.1k
  • 7
  • 65
  • 282

Python 3, 126 bytes

A port of my Jelly answer works well in Python too...

print(*(' '.join([w[2:-1],w[2:],w[:-1],w])for w in"agar abreacts acknowledges codeterminations deindustrializations".split()))

Try it online!

Prints:

a ar aga agar react reacts abreact abreacts knowledge knowledges acknowledge acknowledges determination determinations codetermination codeterminations industrialization industrializations deindustrialization deindustrializations