Created
October 5, 2015 15:33
-
-
Save dummied/45f2713d6d88e06ee912 to your computer and use it in GitHub Desktop.
In-class example for Week 1, Day 1
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
artist = ARGV[0].dup if ARGV[0] | |
second_variable = ARGV[1].dup if ARGV[1] | |
if artist | |
artist.downcase! | |
end | |
if second_variable | |
second_variable = second_variable.to_i | |
end | |
puts artist | |
puts second_variable | |
puts second_variable.class | |
if artist == "trent" || artist == "terrence" | |
puts "Terrence Trent D'Arby or Reznor?" | |
elsif artist == "david" | |
puts "Bowie" | |
elsif artist == "paul" | |
puts "John, George and Ringo" | |
else | |
puts "I have no idea" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment