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 #98
"python"[-4:0:-2]
The slice notation step goes as per the following: a[start:stop:step]. Here, the slide start at -4 (at "t"), stops at 0 (at "p"). As the step is -2, only "t" is kept. (stackoverflow.com/questions/509211/understanding-slice-no...)
What is the output of the code snippet below?
— The Python Quiz (@thepythonquiz) April 25, 2020
"python"[-4:0:-2]
o
tho
oht
th
t#python #python3 #pythonprogramming #learnpython
Question difficulty: π΅π΅π΅π΅π΅
Similar questions: