Advertisement
ijontichy

<stdin>

Sep 29th, 2012
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. >>> for i in range(len(derp)):
  2. >>> ... for j in range(i+1, len(derp)+1):
  3. >>> ... print(derp[i:j])
  4. >>> ...
  5. P
  6. Po
  7. Pot
  8. Pota
  9. Potat
  10. Potato
  11. Potato_
  12. Potato_p
  13. Potato_pi
  14. Potato_pie
  15. o
  16. ot
  17. ota
  18. otat
  19. otato
  20. otato_
  21. otato_p
  22. otato_pi
  23. otato_pie
  24. t
  25. ta
  26. tat
  27. tato
  28. tato_
  29. tato_p
  30. tato_pi
  31. tato_pie
  32. a
  33. at
  34. ato
  35. ato_
  36. ato_p
  37. ato_pi
  38. ato_pie
  39. t
  40. to
  41. to_
  42. to_p
  43. to_pi
  44. to_pie
  45. o
  46. o_
  47. o_p
  48. o_pi
  49. o_pie
  50. _
  51. _p
  52. _pi
  53. _pie
  54. p
  55. pi
  56. pie
  57. i
  58. ie
  59. e
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement