Computer Science, asked by ArchismanMajumdar, 19 days ago

WAP to enter any word and print whether the first and last letter of the word is same or not.

Answers

Answered by alandavidpilathara
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