This course will become read-only in the near future. Tell us at community.p2pu.org if that is a problem.

Reflecting on Week 1 [March 19, 2012, 9:33 p.m.]



Time to put your thinking hats on!

1) What is the difference between puts and print?

2) For big numbers (thousands, millions, billions etc) what is an alternative syntax that ruby provides? Provide an example.

3) What do these methods do? to_s, to_i, puts, gets, chomp

4) What is the programming term when you place a variable inside a string like so: "Author is #{author_age_in_years} years old."

Extra Credit: Explain why in Ruby you can use the "+" operator to add numbers and build strings?