Created
March 26, 2015 22:49
-
-
Save phlipper/e77de4c73783e2655239 to your computer and use it in GitHub Desktop.
TECH603 Day 2 Warmup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. Create a `day_2` directory under the course directory. | |
# 2. Save this file under the new folder as `warmup.rb`. | |
# 3. Assign your favorite vacation location to a variable called `destination`. | |
# 4. Assign the number of days you'd like to visit to a variable called | |
# `duration`. | |
# 5. Assign any floating point number to a variable named `price`. | |
# 6. Output the following message: | |
# I would like to visit _ for _ days, and pay only _ for the whole trip. | |
# 7. Add each of the previous variables to a collection. | |
# 8. Iterate through the collection and output each item. | |
# 9. Create a dictionary called `vacation`. Use the previous variable names as | |
# keys and assign the values. | |
# 10. Using the dictionary from the previous step, output the following message: | |
# I would like to visit _ for _ days, and pay only _ for the whole trip. | |
# 11. Create a function called `yell`. It should take a single argument and | |
# return an uppercase version of the input. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment