Course Solutions Uncategorized (Solved) : 1 Implement Function Takes String Parameter Returns True String Contains Least One Letter Q26340731 . . . .

(Solved) : 1 Implement Function Takes String Parameter Returns True String Contains Least One Letter Q26340731 . . . .

 

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

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post