In this Lab you will create a new package – first create a new virtual environment – use this post and install ipython
- Create a new folder tools
- Create a new folder tools/numbers
- Add 2 modules to number folder:
- simp – create 2 simple functions – adding and subtracting 2 numbers
- comp – create 2 functions:
- sumofdigits – gets a number and returns sum of digits (for example 234 => 9)
- ispal – return True if the number is palindrome (1221 , 34543, ….)
- Add col.py module to the folder tools with the following function:
- myzip(it1 , it2) – implement zip function for 2 collections
- Add a simple script to test all the functions
- Implement the following rule – user cannot call the functions in comp module before calling at least one function in simp module – generate an exception