fork download
  1.  
  2. l=["abc", "bcd", "xyz"]
  3.  
  4. def Sample00(x):
  5. for i in l:
  6. if str(x) in i:
  7. print(i)
  8.  
  9. Sample00('b')
  10.  
  11.  
  12. r=[[1, 2, 3],[2, 3, 4],[9, 5, 19, 7, 9]]
  13.  
  14. def Sample11(x):
  15. for i in r:
  16. if x in i:
  17. print(i)
  18.  
  19. Sample11(3)
  20.  
  21.  
  22. l=["abc", "bcd", "xyz"]
  23.  
  24. def Sample22(x):
  25. for j in x:
  26. for i in l:
  27. if str(j) in i:
  28. print(i)
  29.  
  30. Sample22('ax')
  31.  
  32.  
Success #stdin #stdout 0.04s 9364KB
stdin
Standard input is empty
stdout
abc
bcd
[1, 2, 3]
[2, 3, 4]
abc
xyz