The quiz where the difficulty automagically adapts to the player's Python knowledge
This is a question page. You can use this page to bookmark a question. Start a new quiz!
Question #26
"Python"[2:4]
Python uses zero-based indexing. That means, the first element has an index 0, the second has index 1, and so on. The full slice syntax is: start:stop:step. start refers to the index of the element which is used as a start of our slice. stop refers to the index of the element we should stop just before to finish our slice. step allows you to take each nth-element within a start:stop range. (railsware.com/blog/python-for-machine-learning-indexing-a...)
What is the ouput of this code?
— The Python Quiz (@thepythonquiz) May 5, 2020
"Python"[2:4]
Py
yt
th#python #python3 #pythonprogramming #learnpython
Question difficulty: π΅π΅π΅π΅π΅
Similar questions: