#C3746. Check Same Start and End Character
Check Same Start and End Character
Check Same Start and End Character
Given a string s, determine whether its first and last characters are the same, ignoring case. Formally, let \(a = s[0]\) and \(b = s[|s|-1]\). The output should be True
if \(a = b\) (case-insensitive), and False
otherwise. If the input string is empty, output False
.
inputFormat
The input consists of a single line containing a non-negative length string s.
Note: The input is read from stdin
.
outputFormat
Output True
if the first and last character of the string (ignoring case) are the same; otherwise, output False
. The result is printed to stdout
.
Level
True