15 DEC 2025

Boolean algebra device state script

I created a optimised script to decide what state a device should be, for example the diffrent states were idle, low power mode and transmit data. This script was created for a assignment

Python

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:

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

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.