Computer Science, asked by myidentity, 3 months ago

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 rohitraz19
1

Answer:

good question

Explanation:

good evening dear friend

Answered by shauryapal925
0

Answer:

error is in 10 th line have fun lets rock yo plz mark brainiest plz flw me

Similar questions