Skip to content

Latest commit

 

History

History

0x04-python-more_data_structures

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

0x04. Python - More Data Structures: Set, Dictionary

Description

What you should learn from this project:

  • Why Python programming is awesome (don’t forget to tweet today, with the hashtag #pythoniscool :))
  • What are set and how to use them
  • What are the most common methods of set and how to use them
  • When to use sets versus lists
  • How to iterate into a set
  • What are dictionary and how to use them
  • When to use dictionaries versus lists or sets
  • What is a key in a dictionary
  • How to iterate into a dictionary
  • What is a lambda function
  • What is map, reduce and map functions

  • Write a function that computes the square value of all integers of a matrix.
  • Write a function that replaces all occurrences of an element by another in a new list.
  • Write a function that adds all unique integers in a list (only once for each integer).
  • Write a function that returns a set of common elements in two sets.
  • Write a function that returns a set of all elements present in only one set.
  • Write a function that returns the number of keys in a dictionary.
  • Write a function that prints a dictionary by ordered keys.
  • Write a function that replaces or adds key/value in a dictionary.
  • Write a function that deletes a key in a dictionary.
  • Write a function that returns a new dictionary with all values multiplied by 2
  • Write a function that returns a key with the biggest integer value.
  • Write a function that returns a list with all values multiplied by a number without using any loops.
  • Technical interview preparation:
  • Write a function that returns the weighted average of all integers tuple (, )
  • Write a function that computes the square value of all integers of a matrix using map
  • Write a function that deletes keys with a specific value in a dictionary.
  • Create two C functions that print some basic info about Python lists and Python bytes objects.

Python lists:


Author