Question: def same _ length ( L 1 , L 2 ) : ' ' ' ( list , list ) - > bool Return True

def same_length(L1, L2):
'''(list, list)-> bool
Return True if and only if L1 and L2 contain the same number of elements.
'''
if len(L1)== len(L2):
return True
else:
return False

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 Programming Questions!