String Membership#
Your task for this coding challenge is to write a function called char_in_string
that takes in two strings as parameters, letter
and message
. The first parameter, letter
, will only have one character in it. The function should return True
if message
contains the character in letter
and False otherwise.
Sample Input 1:
b
book
Sample Output 1:
True
Sample Input 2:
c
book
Sample Output 2:
False