str='A man, a plan, a canal: Panama'
if str==''.join(reversed(str)):
print('True')
else:
print('False')
new_str='race a car'
if str==''.join(reversed(new_str)):
print('True')
else:
print('False')
# in case I remove all punctuation and spaces
str = 'amanaplanacanalpanama'
if str==''.join(reversed(str)):
print('True')
else:
print('False')
#not sure that this one is correct