Question #282

What is the output of the code snippet below?
print("Python"[2:])

This will return thon . With the list slicing notation, 2 is here the start of the slice of the returned list, it will keep all characters after the second position e.g. after y . (oreilly.com/content/how-do-i-use-the-slice-notation-in-py...)


Comment on Disqus:

Question difficulty: 🔵🔵🔵🔵🔵