Question: def isPalindrome ( words ) : result = for i in range ( 0 , len ( words ) + 1 ) :
def isPalindromewords:
result
for i in rangelenwords:
for j in rangelenwords:
if wordsi wordsj:
return true
else:
return false
s "mom"
ans isPalindromes
if ans:
print yes
else:
print nowhat is wrong with this code please give the correct code using two for loops
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
