Coder Social home page Coder Social logo

kwk-l1-hash-iteration-mini-lab-kwk-students-l1-min-072318's Introduction

The Summer Olympics

The Summer Olympics take place every four years in different location around the world. Using the data from the table below, create a hash summer_olympics, using the city as the hash's key and the year as the hash's value. Use :symbols instead of string for the keys.

Place Year
Sydney 2000
Athens 2004
Beijing 2008
London 2012

Add A Key Value Pair

The 1996 summer olympics took place in Atlanta. Add this information to the hash.

Iterate Through the Hash

Use the .each method to iterate through the summer_olympics hash and for each key-value pair puts a string that reads "The _____ summer olympics took place in ______."

Iterate Through the Keys

Use the each_key method to return an array of the cities where each city name has been upcased. Save this to a new variable called upcased_cities and puts this to the screen.

KWK-L1 The Summer Olympics

kwk-l1-hash-iteration-mini-lab-kwk-students-l1-min-072318's People

Contributors

danielseehausen avatar aviflombaum avatar dfenjves avatar

Watchers

 avatar Rishikesh Tirumala avatar James Cloos avatar  avatar Victoria Thevenot avatar  avatar Joe Cardarelli avatar Sam Birk avatar Sara Tibbetts avatar The Learn Team avatar Sophie DeBenedetto avatar  avatar Antoin avatar Alex Griffith avatar  avatar Amanda D'Avria avatar  avatar A. Perez avatar Nicole Kroese  avatar Lisa Jiang avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.