Question: Which Python statement checks if first (starting) character and last character of string variable st are equal? Select one: a. if st[1] == st[-1]: b.
Which Python statement checks if first (starting) character and last character of string variable st are equal?
Select one:
a. if st[1] == st[-1]:
b. if st[0] == st[len(s)]:
c. if st[0] == st[-1]:
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
