Question: How to create a function in python 3, that prints the number of elements that have the same position in two given lists. For example,

How to create a function in python 3, that prints the number of elements that have the same position in two given lists.

For example,

check([2, 3], [1, 3])

prints 1

check ([2, 4, 6, 2, 3] , [2, 4, 6])

prints 3

thanks:)

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!