Advertisement
Guest User

Untitled

a guest
Nov 18th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.65 KB | None | 0 0
  1. print(postfix_store_p_bool_eval('0 Pimp:00=1,01=1,10=0,11=1 1 or 0 0 or imp')) # true
  2. print(postfix_store_p_bool_eval('0 1 or 0 0 Pimp:00=1,01=1,10=0,11=1 or imp')) # true
  3. print(postfix_store_p_bool_eval('0 1 or 0 0 or Pimp:00=1,01=1,10=0,11=1 imp')) # true
  4. print(postfix_store_p_bool_eval('1 1 0 and or')) # true
  5. print(postfix_store_p_bool_eval('Pxor:11=0,01=1,10=1,00=0 1 1 xor')) # false
  6. print(postfix_store_p_bool_eval('1 Pxor:11=0,01=1,10=1,00=0 1 0 or xor')) # false
  7. print(postfix_store_p_bool_eval('Pns:00=0,01=1,10=0,11=1 1 0 ns')) # true
  8. print(postfix_store_p_bool_eval('1 Pxor:11=0,01=1,10=1,00=0 Pnoxor:11=1,00=1,10=0,01=0 1 1 noxor 0 or xor')) # false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement