I learned that gets creates a new line and asks the user to input something, and gets.chomp does the same thing except that it does not create a ne
gets
gets.chomp
chomp returns a new String with the given record separator removed from the end of str (if present).
chomp
str
See the Ruby String API for more information.