Task: Save a Ruby Hash to CSV File
Task: Save a Ruby Hash to CSV File: a task in Terminal-Lego-15k (Harbor dataset). You need to write a Ruby script that saves a hash containing animal data into a CSV file. The hash contains animal names as keys and animal types as values. The CSV file should have two columns: one for the animal…
The task
You need to write a Ruby script that saves a hash containing animal data into a CSV file. The hash contains animal names as keys and animal types as values. The CSV file should have two columns: one for the animal name and one for the animal type.
Part of PrimeIntellect/Terminal-Lego-15k.