main.rb560 chars25 lines
This code defines a function check_alphabet
that takes in a string as input. It then performs the following steps:
alphabet
which contains all the letters of the English alphabet in lowercase.str
to lowercase.alphabet
string.include?
method.false
, indicating that not all letters are present.true
.Finally, the code tests the function by passing in the given string and prints the appropriate message.
gistlibby LogSnag