Requirements
Due to this being an assignment, I had to follow a brief which told me exactly what I needed to do. Here is the requirement list:
- The code must store values for battery level, signal strength, and whether data transfer is required
- The code must convert those values into Boolean variables
- The script must use the following Boolean operators: and, or, and not
- Based on the returned values, the code should decide on sending data now, entering power saving mode, or staying idle
- The decided action should be printed to the screen
- The code must be commented to explain how it works
Constraints
For this project, the only constraint was time. This is because I already know how to write in Python and the requirements were quite simple.
The code

Conclusion
This project turned out well. The code was very optimised and encouraged me to look further into Boolean variables, which I believe will be very useful in the future.