logo

Crowdly

The following incomplete Python function is intended to return the maximum nu...

✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.

The following incomplete Python function is intended to return the maximum number in a given list of numbers, where the list may contain many nesting levels. 

def RecMax(L): 

     if (type(L) is not list) or (len(L) < 1): 

          return None

if len(L) == 1:

if type(L[0]) is list:

return …………(T)…………

else:

return L[0]

else:

if type(L[0]) is list:

return max(…………(U)…………)

else:

return max(L[0], RecMax(L[1:]))

Write the appropriate code to fill the blank (U) for completing the function

Більше питань подібних до цього

Хочете миттєвий доступ до всіх перевірених відповідей на online.uom.lk?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!