This is the presentation associated with the python string indexing and slicing video.
[dflip id=”2793″ ][/dflip]
Python String Indexing and Slicing Video Question
This is the question that was asked in the python string indexing and slicing video
Question :
What is the output of the following code ?
In [ ]:
car = "Mercedes"
print(car[6:-6:-1])
[bg_collapse view=”button-blue” color=”#ffffff” icon=”eye” expand_text=”Show Answer” collapse_text=”Hide Answer” ]
In [1]:
car = "Mercedes"
print(car[6:-6:-1])
[/bg_collapse]