Parsons Problem:Count Strings in Tuple
Create a function called
count_strs
that takes in a tuple,
tup
, as a parameter and counts the number of strings in it. For example,
count_strs((1, 2, "hi"))
should return
1
.
Show
Drag from here
Construct solution here
✅
Perfect! Your solution is correct!
Check
Reset
Pathfinder
×
Parsons:Count Strings in Tuple