Given the following code:
x=input("Enter a string: ")y=0for i in x: print(y,i) y+ = 1(a) What will be printed, if “hello” is entered?
(b) Refactor the code using
enumerate.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.