Write a function that returns if the
Parameters
s
: the string to test if the c
.
n
: the number character in test_string
to compare to c
. (NOTE: n
does NOT represent the 0-based index in the string. Rather, it represents the 1-based index in the string.
c
: the character to compare with the s
.
Output
Returns True
if the s
is c
.
STDIN format
s n c (for instance, cat 2 a
)
Sample input / outputs
cat 2 a
/ True
cat 1 a
/ False
1234 4 4
/ True
1234 4 5
/ False
Instructor solution
Strings in Python Presentation (page 2)
You may exit out of this review and return later without penalty.