4. creating the frequencies hash


I need some help with this problem i have tried everything can somebody please help me you will be an absolute BOSS



If you post the code you have at the moment, I'd be willing to take a look at what could be wrong


puts gets.chomp

var = words


h=Hash.new("nothing here")

puts h

puts h["kitty"]

i have error for this. can somebody help me?


It took me forever to figure this out, and I finally searched it online because my brain is fried over all this.
frequencies = Hash.new(0)


Thanks everyone but i finally figured it out YOU ALL ARE ABSOLUTE BOSSES!!!!!!!! :sunglasses: