Ruby Review

Back to Curriculum Index

Goals

  • Classify data as the Number, String, or Boolean data type
  • Store various data types in variables
  • Use String Interpolation

Pre-work Review

Look at the Ruby program below.

  1. Using what you learned from the pre-work, share one or more statements about the code. Feel free to use vocabulary such as variable, string, integer, reassigned, underscore, method, snake case, etc.
  2. This code also introduces a couple new concepts. Note things that are new to you, or jot down a question!

Example statement about the code: The variable favorite_season contains a string.

Try It: MadLibs!

Choose a MadLib starter program below and 🍴fork (copy) it to your own account. Use what you know about strings, integers, puts, print, variables, and string interpolation to make it run!

While working through this challenge, pay attention to these programmer skills: 1) attention to detail, and 2) reading error messages.

All MadLibs adapted from https://www.pinterest.com/francescacorna/madlibs/

Next: User Input