Ruby - Practice Questions
Ruby Practice Questions
1.1
Exercise

Select Marks in range

Finish the function definition below.

There is a hash marks which contains students’ names as keys and their marks as values. There are two numbers upper_limit and lower_limit. The function marks_in_range should filter and return the hash with only those students and marks, where marks are greater than or equal to lower_limit, and less than or equal to upper_limit.