fork download
  1. import sys
  2. import json
  3.  
  4. def f(d):
  5. for i in d:
  6. if i == 0:
  7. return True
  8. return False
  9.  
  10. print(f([1, 2, 3, 4, 5, 1, 2, 3, 4, 0, 2, 3]))
  11. print(f([1, 2, 3, 4, 5, 1, 2, 3, 4]))
Success #stdin #stdout 0.02s 10032KB
stdin
Standard input is empty
stdout
True
False