What I am Doing wrong in Max number problem

#Write your function here
def max_num(nums):
  larg=nums[0]
  for i in range(len[nums]):
    if larg<nums[i]:
      larg=nums[i]
  return larg
  
#Uncomment the line below when your function is done
print(max_num([50, -10, 0, 75, 20]))

what if there are no elements in the list? You will get an IndexError:

larg=nums[0]

also, len() is a built-in function, calling functions requires parentheses.

Can you share the exercise url?

found what i did wrong i have use square bracket instead of paranthesis in len function