For some reason i can not understand,a TypeError occures when using min and max functions.. Here is the code: import random from typing import List, Any, Union
list1 = []
for i in range(0,200):
x = random.randint(1,50)
list1.append(x)
list2 = [ j for j in range(0,51)]
list1.append(list2)
print(list1)
del list1[99:130]
print(len(list1))
print(min(list1))
And this is the error:TypeError: '<' not supported between instances of 'list' and 'int'
Thank you :)