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

Complete the following function according to its docstring.  Complete the following function according to its docstring. 1 def same_first_name

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!