title: How do i find the max value in a list that contains a list as a value?
body: <p>I have an exercise for a class in python and i have stuck in question 4:</p>
  
  <ol>
  <li><p>Create <code>list1</code> with 200 random integers in space [1,50] and print how many times the number is 10.</p></li>
  <li><p>Create <code>list2</code> with 50 integers [1,2,3, ..., 50] and then with <code>append()</code> function join the lists together and display the size.</p></li>
  <li>Delete the data with index number from 99 to 130 and print the list size after deleting items.</li>
  <li>Find the maximum and minimum in the list.</li>
  </ol>
  
  <p>My first thought on how to find MAX was to sort the list and get the last value but because 1 item in the list is a list I get this error <code>TypeError: '&lt;' not supported between instances of 'list' and 'int'</code>.</p>
  
  <p>Any ideas on what i have to do?
  My code until this question is the one below:</p>
  
  <pre><code>import numpy as np
  
  #Question1
  j= 0; 
  list1 = list(range(200))  #decalre list1
  
  for i in range(200): 
   list1[i] = np.random.randint(50)     #create a list of length 200 with values 0 to 50.
   if list1[i] == 10: 
     j = j+1
  
  print("Number 10 exists ",j,"times in the list.")
  
  #QUESTION2
  list2 = list(range(1,51))  #Declare list2
  list1.append(list2)  #append list2 on list1
  print(len(list1)) 
  
  #QUESTION3
  for i in range(99,130):  # deletes the items with an index number from 99 to 130
     list1.pop(i)
  
  print(len(list1))
  </code></pre>