John-Li/my_programs — comment on commit cb7f58ae6ca9515bd3924f38eefc76ad08aefe97
File: book/branching/if_else/task-19.rb line 2
By gmile:

You cannot do things like this. Hash has determined `key` and `values`, these are strict. While `key` can be an object of arbitrary nature (including `Range`), to access the value under that key you need to pass the exact key. For example:

```ruby
x = { 1..10 => 'hello, world' }

x[1..10] # => "hello, world'
x[5] # => nil
```
Thus trick with range should not and will not work. You should find a different solution for this task.