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(0,100)
  10.  
  11. for y in range(10):
  12. blist.append(0,100)
  13.  
  14. print(alist, blist)
  15.  
  16. def func(mylist):
  17. if 0 in mylist:
  18. return True
  19. else:
  20. return False
  21.  
  22.  
Runtime error #stdin #stdout #stderr 0.03s 12320KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 9, in <module>
TypeError: append() takes exactly one argument (2 given)