Advertisements
Advertisements
प्रश्न
What will be the output of the following Python code?
str= "Soft Skills"
print(str[-3::-3])पर्याय
lSf
Stkl
StKi
l
MCQ
Advertisements
उत्तर
lSf
Explanation:
str[-3::-3] starts from the 3rd last character 'l' and moves left in steps of 3.
It picks 'l', 'S', and 'f', giving the output lSf.
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
