Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions