Mega Code Archive

 
Categories / Python Tutorial / Operator
 

Introducing or

print 'a' or 'b'                                 print '' or 'b'                                       print '' or [] or {}                                 def sidefx():      print "in sidefx()"      return 1  print 'a' or sidefx()