Advertisement
Guest User

which_true_64.py

a guest
Oct 23rd, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.69 KB | None | 0 0
  1. #! /usr/bin/python3
  2. # -*- coding: utf-8 -*-
  3.  
  4. for a in range(2):
  5.   for b in range(2):
  6.     for c in range(2):
  7.       for d in range(2):
  8.         for e in range(2):
  9.           for f in range(2):
  10.             if (a == (b and c and d and e and f)  and  #1. Az összes alábbi.
  11.                 b == (not (c or d or e or f)) and  #2. Az alábbiak egyike se.
  12.                 c == (a and b) and  #3. Az összes előbbi.
  13.                 d == (a + b + c == 1) and  #4. Az előbbiek közül pontosan egy.
  14.                 e == (not (a or b or c or d)) and  #5. Az előbbiek egyike se.
  15.                 f == (not (a or b or c or d or e))):  #5. Az előbbiek egyike se.
  16.               print ((a, b, c, d, e, f))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement