fork download
  1. # your code goes here
  2.  
  3. from random import randint
  4.  
  5. alist=[]
  6. blist=[]
  7.  
  8. for x in range(10):
  9. alist.append(randint(0,100))
  10.  
  11. for y in range(10):
  12. blist.append(randint(0,100))
  13.  
  14. print(alist)
  15. print(blist)
  16.  
  17. def func(mylist):
  18. if 0 in mylist:
  19. return True
  20. else:
  21. return False
  22.  
  23. print(func(alist))
  24. print(func(blist))
Success #stdin #stdout 0.03s 12312KB
stdin
Standard input is empty
stdout
[54, 8, 72, 57, 31, 6, 8, 15, 18, 85]
[52, 92, 21, 47, 38, 38, 60, 15, 19, 20]
False
False