Implement a Python function that checks if a given string is a palindrome
def is_palindrome(string):
return string == string[::-1]
print(is_palindrome('racecar')) # True
print(is_palindrome('hello')) # False
# Output:
# True
# False
note
To compile and run the program, you can use the following commands:
python3 foo.py