Question: Paython language Which Python statement checks if first (starting) character and last character of string variable st are equal? a. if st[0] == st[-1]: b.
Paython language
Which Python statement checks if first (starting) character and last character of string variable st are equal?
a. if st[0] == st[-1]:
b. if st[1] == st[-1]:
c. if st[0] == st[len(s)]:
d. if st[1] == st[len(s)]:
e. if st[0] = st[-1]:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
