Advertisement
Guest User

Slice

a guest
Feb 17th, 2020
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.10 KB | None | 0 0
  1. list = ("a", "b", "c", "d", "e", "f", "g", "h", "j", "o", "s", "p", "z")
  2. x= slice(0,13,3)
  3. print(list[x])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement