Q.

What will be the output of the following
Python code?
1. >>>str1="helloworld"
2. >>>str1[::-1]

A. dlrowolleh
B. hello
C. world
D. helloworld
Answer» A. dlrowolleh
Explanation: execute in shell to verify.
1.4k
0
Do you find this helpful?
1

Discussion

No comments yet