Code Monkey home page Code Monkey logo

dicts_sets's Introduction

DICTS_SETS

Kate, Dalia & Monica are work associates . They all work at a consultancy company.

Kate has the products sales of Nestle :

KitKat : 34,456,432 US Dollars
Nescafe : 14,106,132 US Dollars
Maggi : 9,960,312 US Dollars
Nido : 44,506,003 US Dollars

Dalia has the products sales of Unilever :

Lipton : 23,456,000 US Dollars
Breyers : 1,235,891 US Dollars
HellManns : 17,241,412 US Dollars
Marmite : 11,715,324 US Dollars

Monica has 2 tables containing the countries in which Unilever and Nestle sell the products:

Nestle : "Saudi Arabia", "Oman", "Kuwait", "Egypt", "Jordan", "Sudan"
Unilever : "Saudi Arabia", "Kuwait", "Iraq", "Morocco", "Yemen", "United Emirates"

Using what you've learned during . Please do the following :

  • Create a variable to hold the values of Nestle products (use a dicitionary)
  • Create a variable to hold the values of Unilever products (Use a dictionary)
  • Print each product sold by Unilever and the sales figures / numbers for that product.
  • Print each product sold by Nestle and the sales figures / numbers for that product.
  • Print which of the companies has more products that the other company.
  • Print the top selling product from Nestle with sales figures.
  • Print the top selling product from Unilever with sales figures.
  • Using Sets & a loop, print all the cities Unilever & Nestle sell their products in.
  • Using Sets & a loop, print the cities that both Nestle & Unilver sell in common.
  • Using Sets & a loop, print the cities Nestle sells in , but Unilver doens't sell in.

dicts_sets's People

Contributors

aqeel-aleid avatar bdoorna 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.