Question: Complete the following function according to its docstring. 1 def same_first_name (name1: List[str], name2: List[str]) -bool: Return whether the first element of namel and name2
1 def same_first_name (name1: List[str], name2: List[str]) -bool: ""Return whether the first element of namel and name2 are the same. 4>> same_first_name(['John', 'Smith'], 'John', Harkness]) True 'Smith'], >>> same first-name (["John", False Matt', 'smith'])
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
