Skip to content

Instantly share code, notes, and snippets.

@phlipper
Created March 10, 2015 22:36
Show Gist options
  • Save phlipper/d76db8ba50b6363bfdae to your computer and use it in GitHub Desktop.
Save phlipper/d76db8ba50b6363bfdae to your computer and use it in GitHub Desktop.
TECH601-00 - Day 3 Warmup
# 1. assign the number 2015 to a variable named `this_year`
# 2. assign the number 2020 to a variable named `event_year`
# 3. calculate the difference in years and assign the value to `years_remaining`
# 4. use concatenation to create a message which reads:
# There are _ years until the big event.
# 5. output the previous message, without a newline at the end
# 6. output a newline
# 7. use interpolation to output the following message, ending with a newline:
# I can't wait until _ for the big event... Only _ years to go!
# Nice work! BONUS TIME!
#
# Don't worry at all if you don't finish these before class, you can go back and
# practice more later :)
# 8. create a list named `contact_info` with the following elements:
# * your name
# * your state
# * your zip code
# * number of years (or some number) you have lived in at your address
# 9. output the following message:
# Hello!
#
# My name is _. It's nice to meet you.
# I have lived in _ for _ years.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment