In this Project I learned about sets, dictionaries and functions to handle data structures like lambda, map, reduce and filter in Python.
- Python Scripts are written with Python 3.4.3
- C files are compiled using
gcc 4.8.4 - Tested on Ubuntu 14.04 LTS
| Filename | Description |
|---|---|
0-square_matrix_simple.py |
Function that computes the square value of all integers of a matrix |
1-search_replace.py |
Function that replaces all occurrences of an element by another in a new list |
2-uniq_add.py |
Function that adds all unique integers in a list |
3-common_elements.py |
Function that returns a set of common elements in two sets |
4-only_diff_elements.py |
Function that returns a set of all elements present in only one set |
5-number_keys.py |
Function that returns the number of keys in a dictionary |
6-print_sorted_dictionary.py |
Function that prints a dictionary by ordered keys |
7-update_dictionary.py |
Function that replaces or adds key/value in a dictionary |
8-simple_delete.py |
Function that deletes a key in a dictionary |
9-multiply_by_2.py |
Function that returns a new dictionary with all values multiplied by 2 |
10-best_score.py |
Function that returns a key with the biggest integer value |
11-multiply_list_map.py |
Function that returns a list with all values multiplied by a number without using loops |
12-roman_to_int.py |
Function that converts a Roman number to an integer |
100-weight_average.py |
Function that returns the weighted average of all integers tuple |
101-square_matrix_map.py |
Function that computes the square value of all integers of a matrix using map |
102-complex_delete.py |
Function that deletes keys with a specific value in a dictionary |
103-python.c |
C functions that print some basic info about Python lists and Python bytes object |