We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ccb8cf commit 0c657bcCopy full SHA for 0c657bc
pangram/pangram.rb
@@ -3,15 +3,15 @@
3
user_input = gets.chomp
4
# The quick brown fox jumps over the lazy dog.
5
6
-ABC = ('a'..'z').to_a
+abc = ('a'..'z').to_a
7
new_user_input = user_input.downcase.split(//)
8
9
-selection = new_user_input.select {|element| ABC.include?(element)}
+selection = new_user_input.select {|element| abc.include?(element)}
10
11
-a = (ABC - selection).empty?
+a = (abc - selection).empty?
12
13
if a == true
14
puts "Yes, I am a pangram!"
15
else
16
puts "Sorry, you are wrong, I am not a pangram :("
17
-end
+end
0 commit comments