startmsg = "python" endmsg = "" for i in range(1,1+len(startmsg)): endmsg = startmsg[-i] + endmsg
The question is:
What is the value of endmsg after executing the following lines?
After the execution output will be
'python'
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment