Question: QUESTION 1 Does the program below have an error? If so, why? t = hello t[0] = H? QUESTION 2 Assuming words is a valid
QUESTION 1
Does the program below have an error? If so, why?
t = hello
t[0] = H?
QUESTION 2
Assuming words is a valid list of words, the program below tries to print the list in
reverse. Does it have an error? If so, why? (Hint: there are two problems with the code.)
for i in range(len(words), 0, -1):
print (words[i])
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
