Skip to content

Commit 0c657bc

Browse files
committed
Use variables instead of constants.
1 parent 9ccb8cf commit 0c657bc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pangram/pangram.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
user_input = gets.chomp
44
# The quick brown fox jumps over the lazy dog.
55

6-
ABC = ('a'..'z').to_a
6+
abc = ('a'..'z').to_a
77
new_user_input = user_input.downcase.split(//)
88

9-
selection = new_user_input.select {|element| ABC.include?(element)}
9+
selection = new_user_input.select {|element| abc.include?(element)}
1010

11-
a = (ABC - selection).empty?
11+
a = (abc - selection).empty?
1212

1313
if a == true
1414
puts "Yes, I am a pangram!"
1515
else
1616
puts "Sorry, you are wrong, I am not a pangram :("
17-
end
17+
end

0 commit comments

Comments
 (0)