fork download
  1. first=["fuck", "you", "bitch"]
  2. second=["love", "my", "live"]
  3. third = ["sex","drugs","rock"]
  4. list=[]
  5. i=0
  6. x=0
  7. y=0
  8. j=0
  9. for a in third:
  10. for a in second:
  11. for a in first:
  12. list.insert(i, first[x]+second[y]+third[j])
  13. i=i+1
  14. x=1+1
  15. if i> len(first) -1:
  16. x=0
  17. y=y+1
  18. elif len(list)>8:
  19. y=0
  20. j=j+1
  21. print(list)
Runtime error #stdin #stdout #stderr 0.02s 9984KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 12, in <module>
IndexError: list index out of range