Created
April 1, 2015 00:37
-
-
Save phlipper/bd460a867330f0a7c886 to your computer and use it in GitHub Desktop.
TECH603 Day 3 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_3` directory under the course directory. | |
# 2. Save this file under the new folder as `warmup.rb`. | |
# 3. Assign any string value to a variable. | |
# 4. Assign any whole number to a variable. | |
# 5. Assign any decimal number to a variable. | |
# 6. Add each of the previous variables to a collection. | |
# 7. Output the number of items in the collection. | |
# 8. Iterate through the collection and output each item. | |
# 9. Create a dictionary with your name, birth month, and birth day. | |
# 10. Using the dictionary from the previous step, output the following message: | |
# My name is _ and my birthday is on _. | |
# 11. Add the dictionary from step 10 to the collection of items from step 6. | |
# 12. Create a function which returns an "ordinal indicator" for a number. | |
# | |
# In written languages, an ordinal indicator is a character, or group of | |
# characters, following a numeral denoting that it is an ordinal number, | |
# rather than a cardinal number. | |
# In English orthography, this corresponds to the suffixes -st, -nd, -rd, | |
# -th in written ordinals represented as 1st, 2nd, 3rd, 4th, etc. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment