Answered step by step
Verified Expert Solution
Question
1 Approved Answer
def onlyContainsStrings(theList): ''' - Returns True if theList is a list containing only strings. - The parameter theList can be anything. - An empty list
def onlyContainsStrings(theList):
''' - Returns True if theList is a list containing only strings. - The parameter theList can be anything. - An empty list should return False since it doesn't contain a string. - If theList is not a list type, return False since theList is not a list containing only strings. - Note: you can check if theList is a list with type(theList) == list '
'' return "stub"
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered 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