I am trying to write a program that when a single letter is inputted, if it\'s in uppercase, leave it in uppercase and return it, and if it\'s in lowercase, then convert to
For a single string you can use start_with? method as well.
user_input = gets.chomp if user_input.start_with?(user_input.downcase) user_input.upcase! end