Question
1) Implement a function that takes a string as parameter and returns True if the string contains at least one letter and returns False if
1) Implement a function that takes a string as parameter and returns True if the string contains at least one letter and returns False if the string does not contain a letter. To get credit use the in string function and a loop to check the string.
>>> containsLetter("%^*((8**")
False
>>> containsLetter("765EE}}}")
True
2) Implement a function that takes a string as parameter and returns True if the string contains at least one number and returns False if the string does not contain a number. To get credit use the in string function and a loop to check the string.
>>> containsNumber("%^*((8**")
True
>>> containsNumber("AbcdEE}}}")
False
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started