Nov-23-2023, 08:40 AM
Please use bbtags when posting code.
hello is a string and needs to be 'hello' as well as the letter 'h'
Example:
hello is a string and needs to be 'hello' as well as the letter 'h'
Example:
def contains_letter(string, letter): for letters in string: if letters == letter: return True return False print(contains_letter('hello', 'h'))output
Output:True
I welcome all feedback.
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags
Download my project scripts
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags
Download my project scripts