Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 962 Bytes

File metadata and controls

31 lines (24 loc) · 962 Bytes
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:

Errors

If you try to reverse a number or do anything fishy, Ruby will tell you so.

Arrays

Arrays are lists for storing things in some order. We also know how to create array's and get items from array's.

Variables

Variables save a thing and give it a name. You used the equals sign to do this. Like: ticket = [14, 37, 18].

2/8

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