WAP to enter any word and print whether the first and last letter of the word is same or not.
Answers
Answered by
0
Answer:
word = input(Enter a word: ")
if(word[0] == word[-1]):
print("First letter and last letter are same")
else:
print("First letter and last letter are not same")
Similar questions