NonTrivialPython
Completing all the exercises from Python Exercies by Ynon Perek
The exercises are split into the following Sections:
Reference
01. Basic Syntax -Basic Syntax 1 - Completed
1.- takes an integer input and returns the sum of its digits
Basic Syntax 2 - Incomplete
2.- Not completed because the program is very similar to my word2vec and this is for the sake of my learning and not the arbitrary completion of a project. Its also really easily solved with NLTK
Reference
02. Text Processing -Text Processing 1 - Completed
1.- takes the input file, regexes for values, outputs csv file with results
Text Processing 2 - Incomplete
2.- To be completed
Reference
03. OS Integration -OS Integration 1 - Incomplete
1.- To be completed
OS Integration 2 - Incomplete
2.- To be completed
Reference
04. Functions -Functions 1 - Completed
1.- function takes a number as input
- returns the sum of the number's digits, throws value error otherwise
Functions 2 - Completed
2.- function any number of inputs
- returns the multiplicative sum of all the numbers, otherwise, returns 1
Functions 3 - Completed
3.- function that takes a number any any number of words.
- returns a list of all the words longer than that number
Functions 4 - Completed
4.- a function(1) that takes a function(2), and any number of arguments
- returns a dictionary where the keys are the outputs of the arguments through the passed function(2) and the values are a list of all inputs that resulted in that output
Reference
05. Decorators & Generators -Decorators & Generators 1 - Completed
1.- create a decorator class that does not allow the function doit() to do anything for the first 5 calls
Decorators & Generators 2 - Completed
2.- decorator the saves memory by reducing the number of times fibonacci sequence is called
Decorators & Generators 3 - Completed
3.- Fibonacci sequence of Decorators & Generators completed with a non recursive generator instead of recursive function
Decorators & Generators 4 - Completed
4.- decorator that throws assertion error if inputs do not match class types
Decorators & Generators 5 - Completed
5.- decorator that throws assertion error if output does not match class type
Reference
06. Classes -Classes 1 - Complete
1.- Class to track dependencies of objects and get the complete list of dependencies with no duplicates, depth first
Classes 2 - Incomplete
2.- To be completed
Classes 3 - Incomplete
3.- To be completed
Classes 4 - Incomplete
4.- To be completed
Reference
07. Modules -Modules 1 - Incomplete
1.- To be completed
Modules 2 - Incomplete
2.- To be completed
Modules 3 - Incomplete
3.- To be completed
Modules 4 - Incomplete
4.- To be completed
Reference
08. Exceptions -Exceptions 1 - Incomplete
1.- To be completed
Exceptions 2 - Incomplete
2.- To be completed
Exceptions 3 - Incomplete
3.- To be completed
Reference
09. Lists & Dictionaries -Lists & Dictionaries 1 - Incomplete
1.- To be completed
Lists & Dictionaries 2 - Incomplete
2.- To be completed
Reference
10. Multi Processing -Multi Processing 1 - Incomplete
1.- To be completed
Multi Processing 2 - Incomplete
2.- To be completed
Multi Processing 3 - Incomplete
3.- To be completed
Multi Processing 4 - Incomplete
4.- To be completed
Reference
11. Unit Tests -Unit Tests 1 - Incomplete
1.- To be completed
Unit Tests 2 - Incomplete
2.- To be completed
Unit Tests 3 - Incomplete
3.- To be completed
Unit Tests 4 - Incomplete
4.- To be completed