adplus-dvertising
frame-decoration

Question

What is the output of the following code ?
>>>example="helloworld"
>>>example[::-1].startswith("d")

a.

dlrowolleh

b.

True

c.

-1

d.

None

Posted under Strings in Python Python

Answer: (b).True

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 of the following code ?