> > myhash = {}
> > key.zip(value) {|a,b| myhash[a] = b }
> >
> > It does not work!
> irb(main):017:0> key.zip(value){|a,b| myhash[a] = b}
> => nil

The result is in my_hash

irb(main):014:0> myhash = {}
=> {}
irb(main):015:0> key.zip(value) {|a,b| myhash[a] = b }
=> nil
irb(main):016:0> myhash
=> {"1"=>"a", "2"=>"b", "3"=>nil}