Quick actions

cmd+k|ctrl+k

Navigation

Languages

02 - Ex 04

Snippet info

Language

Python

Visibility

public

Author

vovanthinh2312

Created

2016-10-20T09:53:17Z

Updated

2016-10-20T12:02:28Z

#Kiểm tra 1 string có phải là palindrome hay không.
s = 'abba'
s1 = s[::-1]
if s == s1:
    print('{0} is a palindrome string'.format(s))
else:
    print('{0} isn\'t a palindrome string'.format(s))
INFO