In: Computer Science
Phython:
Given a string x, write a program to check if its first character is the same as its last character. If yes, the code should output "True"
'''
program for first and last characters of a string
equal or not
'''
str=input("Enter String : ")
if(str[0]==str[-1]): #str[0] for first character
str[-1] for last character
print("True")
else:
print("False")