Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> for i in range(len(derp)):
- >>> ... for j in range(i+1, len(derp)+1):
- >>> ... print(derp[i:j])
- >>> ...
- P
- Po
- Pot
- Pota
- Potat
- Potato
- Potato_
- Potato_p
- Potato_pi
- Potato_pie
- o
- ot
- ota
- otat
- otato
- otato_
- otato_p
- otato_pi
- otato_pie
- t
- ta
- tat
- tato
- tato_
- tato_p
- tato_pi
- tato_pie
- a
- at
- ato
- ato_
- ato_p
- ato_pi
- ato_pie
- t
- to
- to_
- to_p
- to_pi
- to_pie
- o
- o_
- o_p
- o_pi
- o_pie
- _
- _p
- _pi
- _pie
- p
- pi
- pie
- i
- ie
- e
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement