File: boolean_matrix.py

package info (click to toggle)
markdown-exec 1.12.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 728 kB
  • sloc: python: 2,487; javascript: 120; makefile: 37; sh: 30
file content (7 lines) | stat: -rw-r--r-- 164 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
print()
print("a   | b   | a \\|\\| b")
print("--- | --- | ---")
for a in (True, False):
    for b in (True, False):
        print(f"{a} | {b} | {a or b}")
print()