Change print to puts

This commit is contained in:
Jessica Kwok 2021-03-29 10:05:15 -07:00
parent 5bf141f64f
commit 31d9e8e0a2

View file

@ -36,7 +36,7 @@ s = 'leetcodeisacommunityforcoders'
puts(remove_vowels(s))
# => "ltcdscmmntyfrcdrs"
s = 'aeiou'
print(remove_vowels(s))
puts(remove_vowels(s))
# => ""
#
@ -51,10 +51,10 @@ def remove_vowels(s)
end
s = 'leetcodeisacommunityforcoders'
print(remove_vowels(s))
puts(remove_vowels(s))
# => "ltcdscmmntyfrcdrs"
s = 'aeiou'
print(remove_vowels(s))
puts(remove_vowels(s))
# => ""
#
@ -67,8 +67,8 @@ def remove_vowels(s)
end
s = 'leetcodeisacommunityforcoders'
print(remove_vowels(s))
puts(remove_vowels(s))
# => "ltcdscmmntyfrcdrs"
s = 'aeiou'
print(remove_vowels(s))
puts(remove_vowels(s))
# => ""