Recap Exercise

In case you get stuck anywhere, don't be afraid to ask the coaches! They are here to help and will gladly explain everything to you!

Take notes during the exercises. Even if you never look at them again, they will help you memorise things!

  1. Write a program that asks for the user’s name and outputs it like this: Hello, Michelle!. Hint: Use string interpolation!

  2. We’re going to collect mushrooms! Imagine your writing a program to keep track of who found how many. In IRB, execute the following: mushroom_count = { "Hana" => 7, "Thomas" => 3, "Mario" => 4 } Now, using that variable, output the names of the participants who collected mushrooms. Use the Ruby documentation for Hash to find a suitable method for doing this.