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
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
English,
3 months ago
Science,
3 months ago
Computer Science,
6 months ago
English,
6 months ago
Computer Science,
11 months ago
Physics,
11 months ago
Math,
11 months ago