#!/usr/bin/ruby # -*- coding: utf-8 -*- =begin each_with_index 사용 =end people = ["Charlie", "Steve", "Anne"] h = people.each_with_index.to_h puts h