Write a program to look for the occurrence of “red” in a given sentence. Capitalization does not matter in the given sentence.
Examples:
- “pure delight”
Returns 0
- “read the RED sign followed by GREEN and red said fred”.
Returns: 3
- “Rendering red and redefining red”
Returns 3
Aucun commentaire:
Enregistrer un commentaire