Skip to content

Instantly share code, notes, and snippets.

@phlipper
Created September 19, 2014 00:50
Show Gist options
  • Save phlipper/a1c00898675b8d92638c to your computer and use it in GitHub Desktop.
Save phlipper/a1c00898675b8d92638c to your computer and use it in GitHub Desktop.
TECH 601-00 Warm-up Exercise - Thursday 2014-09-18
# 1. create a variable named 'a' with the value of 1 and display 'a'
# 2. create a variable named 'b' with the value of 2 and display 'b'
# 3. create a variable named 'c' with the value of 3 and display 'c'
# 4. create a variable named 'd' with the value of 10 and display 'd'
# 5. add 'a' and 'b' and display the result
# 6. add 'a' and 'd' and display the result
# 7. add 'a' and 'b' and 'c' and 'd' and display the result
# 8. multiply 'd' and 'b' and display the result
# 9. multiple 'd' by itself and display the result
# 10. divide 'd' by 'b' and display the result
# 11. divide 'd' by itself and display the result
# 12. create a list named 'lots_of_a' that contains 4 'a's
# 13. display contents of the list 'lots_of_a'
# 14. create a list named numbers that contains 'a', 'b', 'c', and 'd' and display the list
# 15. create a variable named 'name' that contains your full name
# 16. create a variable named 'greeting' that contains the words "Hello, my name is: "
# 17. create a varialbe named 'full_greeting' that is made up of 'greeting' and 'name' and display the result
# 18. iterate through 'numbers' and display "The value is: " with each value
# 19. get the sum of 'numbers' and display the result
# 20. get the average of 'numbers' and display the result
# BONUS - What happens if you try to run the following (and why)?:
# "1" + 1
# What could we do to make that run?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment