logo

Crowdly

What is the purpose of this function?  def enigma(my_list): paul = my_list[0...

✅ 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 enigma(my_list):

paul = my_list[0]

george = my_list[-1]

for ringo in range(len(my_list)):

if my_list[ringo] > paul:

paul = my_list[ringo]

elif my_list[ringo] < george:

george = my_list[ringo]

return george, paul

0%
0%
100%
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!