logo

Crowdly

What is the purpose of this function?  def mystery(my_array): john = 0 j...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

What is the purpose of this function? 

def mystery(my_array):

john = 0

jim = my_array[0]

for jimbo in my_array:

joe = my_array.count(jimbo)

if joe > john:

john = joe

jim = jimbo

return jim, john

100%
0%
0%
More questions like this

Want instant access to all verified answers on learning.monash.edu?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!