Answer to Question #134719 in Python for santosh kasyap
1. What is the value of endmsg after executing the following lines?
startmsg = "python"
endmsg = ""
for i in range(1,1+len(startmsg)):
endmsg = startmsg[-i] + endmsg
2.What is the value of mylist after the following lines are executed?
def mystery(l):
l = l[1:]
return()
mylist = [7,11,13]
mystery(mylist)
1
2020-09-23T11:28:06-0400
- The value of endmsg after executing the code is: "python"
- The value of mylist after the code executed is: [7, 11, 13]
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Learn more about our help with Assignments:
Python
Comments
Leave a comment