fork(3) download
  1.  
  2. y=lambda symbol: 'X' if symbol==True else 'O' if symbol==False else ' '
  3.  
  4.  
  5. print y(True)
  6. print y(False)
  7. print y('Something else')
  8.  
Success #stdin #stdout 0.01s 8968KB
stdin
Standard input is empty
stdout
X
O