basic boolean calculator
Project description
This is boolean calculator with operate from left to right.
Developby PAO,RAM and YN
Example
import boolcalc
inp = “T ^ T <–> ( T –> F v ( T ^ T ) )”.split(” “) print(boolcalc.calculate(inp))
inp = “( ( ( T –> F –> T v F ) <–> T ) ^ T )”.split(” “) print(boolcalc.calculate(inp))
inp = “( ( ( T –> F –> T v F ) <–> T ) ^ T() “.split(” “) print(boolcalc.calculate(inp))
inp = [“(“,”T”,”<–>”,”F”,”^”,”F”,”)”] print(boolcalc.calculate(inp))
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
boolcalc-0.0.7.tar.gz
(3.3 kB
view hashes)