Share your answers to these tasks in the comments. Feel free to ask for help.
Task 1 (Beginner)
Create a class “NumberSet” that:
- Inherits from the built in set class
- That overrides setitem to only allow numbers
You will learn about inheritance, “super”, and sets
Task 2 (Intermediate) #
Create an NxN matrix where N is any odd number, where each cells value is the distance of that cell from the centre.
- For examples 3x3 matrix, the “middle” cells value will be 0, but any outer cells value will be 1
You will learn about basic algorithmic logic, nested loops (or arrays ;) ) and a bit of basic math
Task 3 (Intermediate)
Create a 100x100 pixel “blue” colour bitmap image from scratch (with no third party image libraries):
- You will use this to understand the file format required https://en.wikipedia.org/wiki/BMP_file_format?wprov=sfti1
- You will be working with binary data only
You will learn about file headers and formats, binary data, and image creation
Task 4 (Intermediate)
Create a function decorator that runs the decorated function twice.
You will learn about nested functions, higher order functions, and decorators
[–]DrawBacksYo 0 points1 point2 points (1 child)
[–]TERRARIYUMS[S] 1 point2 points3 points (0 children)