| lang | title | answer | class | load | ok | error |
|---|---|---|---|---|---|---|
EN |
Summary |
\w+ |
stretcher chapmark |
poem = "My toast has flown from my hand\nAnd my toast has gone to the moon.\nBut when I saw it on television,\nPlanting our flag on Halley's comet,\nMore still did I want to eat it.\n" |
Does it rhyme? |
Now, look how your second minute went:
If you try to reverse a number or do anything fishy, Ruby will tell you so.
Arrays are lists for storing things in some order. We also know how to create array's and get items from array's.
Variables save a thing and give it a name. You used the equals sign to do this. Like: ticket = [14, 37, 18].
In all there are eight sections. You are two-eighths of the way there! This is simple stuff, don't you think? Good stuff up ahead.
Let's change directions for a moment. I've stuffed a bit of poetry for you in a certain variable. Take a look. Type:
puts poem