Created
February 21, 2018 17:56
-
-
Save Nursultan91/184d18a64385f37bc14425d37f065f60 to your computer and use it in GitHub Desktop.
Усложненная версия первого домашнего задания
This file contains hidden or 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
good_movies = [ 'Matrix', 'GOT', 'Hobbit', 'LOTR', 'Batman' ] | |
bad_movies = [ 'Titanic', 'Terminator', 'Cloverfield', 'Vikings', 'WD' ] | |
bad_answer = bad_movies & ARGV | |
bad_answer.each { |ba| puts "#{ba} is a bad movie"} | |
good_answer = good_movies & ARGV | |
good_answer.each { |ga| puts "#{ga} is a good movie"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment