[Solved] 0 Lecture 10 Challenge Vnte Function Court Tuber Strings List Tuple Upload Code Belo Carva Q37292471
pls use Python to do this challenge0 # Lecture 10 challenge: # vnte a function to court the tuber strings in a list or tuple. # Upload all the code belo” to Carvar to complete the quiz/challenge, def how nay atrings() Returns the maber of top-level strings in x where x in a list or tuple # tap-2 evel tring.is ore that is not nested nthin a tuple or iin other thari the top-level list/tuple. ROES NOT reed to cont steings that are nested vithin nerted tuples or lits. # Code to conplete ho”_amy.-t ring:([ -a..-string., 6. 1, [ 5, 6, “boo”] ]) # Correct arewer (7.). should be 2 , 다 <function hounany- trines at Ox7f5d2f031488> NaneErzox Traceback (nost recent call lart) in Knodule 0 20 # Code to complete 21 > 22 how-nany-strings([ 1. a.,”string. (7.), [ 5, “boo”) ]) 6, 6, # Correct an ve should be 2 5 unchar-0 6 for line in z: wordlist = #tring-split() –> 7 8 unline 1 9 sword len (wordliet) NaneErrox: nane “string’ in not defined SEARCH STACK OVERFLOW Show transcribed image text 0 # Lecture 10 challenge: # vnte a function to court the tuber strings in a list or tuple. # Upload all the code belo” to Carvar to complete the quiz/challenge, def how nay atrings() Returns the maber of top-level strings in x where x in a list or tuple # tap-2 evel tring.is ore that is not nested nthin a tuple or iin other thari the top-level list/tuple. ROES NOT reed to cont steings that are nested vithin nerted tuples or lits. # Code to conplete ho”_amy.-t ring:([ -a..-string., 6. 1, [ 5, 6, “boo”] ]) # Correct arewer (7.). should be 2 , 다 NaneErzox Traceback (nost recent call lart) in Knodule 0 20 # Code to complete 21 > 22 how-nany-strings([ 1. a.,”string. (7.), [ 5, “boo”) ]) 6, 6, # Correct an ve should be 2 5 unchar-0 6 for line in z: wordlist = #tring-split() –> 7 8 unline 1 9 sword len (wordliet) NaneErrox: nane “string’ in not defined SEARCH STACK OVERFLOW
Expert Answer
Answer to 0 # Lecture 10 challenge: # vnte a function to court the tuber strings in a list or tuple. # Upload all the code belo” t… . . .
OR