Answer to Question #275629 in Python for sabi

Question #275629
myList = list(range(0,10))

for x in myList:
print(myList[x]/myList[x-1])


Please fix the error




1
Expert's answer
2021-12-05T02:15:30-0500
myList = list(range(0,10))


for x in range(2,len(myList)):
    print(myList[x]/myList[x-1])

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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS