title: REMOVING REPEATED NUMBER FROM LIST, not working
body: <p>I have written this code to remove repeating numbers from the list and output the max number. However, it is not removing the number which is repeated on the 4th index value. please help.</p>
  <pre><code>array = input()
  nums = (array.split())
  num = [int(i) for i in nums]
  
  n = 0
  for j in num:
   for q in num:
      if q == j:
          n += 1
      if n &gt; 1:
          while j in num:
             num.remove(j)
      n = 0
  print(num)
  print(max(num))
  </code></pre>