This is a question about syntax more than anything. I am pretty sure that I am almost right, but not quite. I'm trying to put a for loop inside of the expression for an if statement.
A mock-up of what I think it should be for a simple palindrome tester:
toTest = "asdffdsa"
if toTest[i]==toTest[-i] for i in range(len(toTest)/2):
print("It's a palendrome!")
Thanks in advance for your help!