✅ 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
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!