Digital Logic Gates In Python