Exercise 1: Create a Hash

Practice creating a hash.

Problem statement

Create and return a hash with the values “one”, “two”, and “three” stored against the keys “uno”, “dos”, and “tres”, respectively.

Example

Expected Output: { "uno" => "one", "dos" => "two", "tres" => "three" }

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy