WHAT IS THE SYNTAX ERROR?? IT IS PYTHON
L=[]
def palindrome(l):
i=0
while(i
if (l[i])==(l[i])[::-1]:
L.append(l(i))
i=i+1
print("The palindrome list is:",L)
return L
commands='''Enter 1 to input list
Enter 2 to get palindrome list
Enter 3 to exit'''
print(commands)
command=int(input("Enter the command:"))
while command!=3:
if command==1:
l=(input("Enter a list:"))
elif command==2:
palindrome(l)
command=int(input("Enter the command:"))
Answers
Answered by
1
Answer:
good question
Explanation:
good evening dear friend
Answered by
0
Answer:
error is in 10 th line have fun lets rock yo plz mark brainiest plz flw me
Similar questions
Math,
2 months ago
Social Sciences,
2 months ago
English,
3 months ago
Political Science,
11 months ago
Math,
11 months ago