"abcde"[::-1] का output क्या होगा?
What will be the output of "abcde"[::-1]?
A
abcde
B
edcba
C
eabcd
D
error
Explanation
-
English:
"abcde"[::-1]uses string slicing with a step of-1, which means the string is reversed. -
हिंदी:
"abcde"[::-1]में slicing का step-1है, जो string को उल्टा (reverse) कर देता है।
🔄 Result:
"abcde"[::-1] → "edcba"
Correct Answer: B) edcba