Click here to navigate the course.

Drag the edges to resize the window.

In Projects, you can keep track of your progress as you go throught the tasks. Check each item as you complete it!

Code Editor
Learn
Methods, Blocks, & Sorting

Blocks

Let's go over what we learned about blocks.

numbers = [5, 2, 8] sum = 0 numbers.each do |n| sum += n end puts sum

The example above is just a reminder about syntax. We calculate the sum of a list of numbers.

Community Forums
Get help and ask questions in the Codecademy Forums
Report a Bug
If you see a bug or any other issue with this page, please report it here.