Computer Science, asked by roshanlegendz, 6 months ago

Rewrite the following code in Python after removing the syntax error(s)
Msg="Mid Term Exam'
L=Len(Msg)
for i in range(L):

if i < 5:
print(Msg(i))
Else:
print("Loop Complete")


ANSWER PLS

Answers

Answered by PRahul
0

Answer:

Explanation:

Msg="Mid Term Exam'

L=len(Msg)      #len in small letters(pre-defined method)

for i in range(L):

if i < 5:

 print(Msg(i))

else:           #else in small letters (reserve keyword)

 print("Loop Complete")

Similar questions