fork download
  1. poem = "My toast has flown from my hand
  2. And my toast has gone to the moon.
  3. But when I saw it on television,
  4. Planting our flag on Halley's comet,
  5. More still did I want to eat it."
  6.  
  7. print poem
  8. print "\n\n\n"
  9.  
  10. poem['toast'] = 'honeydew'
  11.  
  12. print poem
  13. print "\n\n\n"
  14.  
  15. poem.lines.to_a.reverse
  16.  
  17. print poem
  18. print "\n\n\n"
Success #stdin #stdout 0.01s 7412KB
stdin
Standard input is empty
stdout
My toast has flown from my hand
And my toast has gone to the moon.
But when I saw it on television,
Planting our flag on Halley's comet,
More still did I want to eat it.


My honeydew has flown from my hand
And my toast has gone to the moon.
But when I saw it on television,
Planting our flag on Halley's comet,
More still did I want to eat it.


My honeydew has flown from my hand
And my toast has gone to the moon.
But when I saw it on television,
Planting our flag on Halley's comet,
More still did I want to eat it.