you don't even have to use single or double quotes to create a string : String Quotation String Ruby January 4, 2020 # Ruby can add them if you use the %q (single quotes) or %Q (double quotes) syntax. puts %Q/Yes, that was Cary Grant./ Post navigation you can use the length method on hashes just as you can on arrays. : Hash Length Hash Rubyyou don't need to use $_ with gets – you can assign the text it reads to any variable: temperature = gets : chomp Development Ruby Leave a Reply Cancel reply Your email address will not be published. Required fields are marked *Comment Name * Email * Website