adplus-dvertising
frame-decoration

Question

What is the output when following code is executed ?
>>>str1="helloworld"
>>>str1[::-1]

a.

dlrowolleh

b.

hello

c.

world

d.

helloworld

Posted under Python

Answer: (a).dlrowolleh

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output when following code is executed ?