Quiz Catalog

Catalog of quizzes

a = "Hello, World"

print(a[:6:2])
Hlo
  • string/operation/slice

st = "spam"

print(st[:-1:])
spa
  • string/operation/slice

st = "spam"

print(st[-1::-1])
maps
  • string/operation/slice

arr = (1, 2, 3)
s = str(arr)

print(s[4:10])
2, 3)
  • string/operation/slice
  • build-in/str