1) Implement a function that takes a string as parameter andreturns True if the string contains at least one letter and returnsFalse if the string does not contain a letter. To get credit usethe 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 andreturns True if the string contains at least one number and returnsFalse if the string does not contain a number. To get credit usethe in string function and a loop to check the string.
>>> containsNumber(“%^*((8**”)
True
>>> containsNumber(“AbcdEE}}}”)
False
Expert Answer
An answer will be send to
PayPal Gateway not configured
PayPal Gateway not configured