title: Python, print colored duplicates found in 2 list
body: <p>I'm 63 and just started with Python (My first steps with Udemy).
  I'm Croatian so this is croatian language in program but you will understand when you run a program. I know it can be cleaner, shorter, more elegant etc, but as I mentioned before - I'm beginner.</p>
  <hr />
  <pre><code>import random
  
  jedan = random.sample(range(1,99),15)
  dva = random.sample(range(1,99),15)
  
  def raspaljot(jedan, dva, i):
      for x in jedan:
          for y in dva:   
              if y == x:      
                  index1 = jedan.index(x)
                  index1_str = str(index1)
                  index2 = dva.index(y)
                  index2_str = str(index2)
                  i += 1
                  x = str(x)
                  print(&quot; Broj \033[31m&quot; + x + &quot;\033[0m,je dupli i nalazi se u listi jedan: na poziciji: \033[34m&quot;
                  + index1_str + &quot;\033[0m a u listi dva na poziciji: \033[35m&quot;+ index2_str + &quot;\033[0m&quot;)
      print()
      print(jedan)
      print(dva)      
      if i != 0:
          print(&quot;\n *** Ukupno ima &quot;, i, 'duplih brojeva. ***')
      elif i == 0:
              print(&quot;Nema duplih brojeva. :) &quot;)
  
  i = 0
  raspaljot(jedan, dva,i)
  </code></pre>
  <hr />
  <p>What program do is finding duplicates in 2 random lists, them print duplicates in color and detecting position inside list[1] and list[2].
  What I trying to do is printing list1 and list2 but showing duplicates in color.</p>
  <p>For example:
  [14, 78, 85, 31, 5, 54, 13, 46, 83, 4, 35, 41, 52, 51, 32]
  [72, 40, 67, 85, 54, 76, 77, 39, 51, 36, 91, 70, 71, 38, 55]</p>
  <p>here we have 3 duplicates (85,54,51). This above example on the console End was printed in white color, but I wanna these 3 numbers in red color in those two lines above.
  Is this possible? I couldn't find a solution.</p>
  <hr />
  <p>PS. Wing Pro version 7 on Fedora 33 Workstation / In WIngIde colors are only displayed in an external console and not the Debug I/O tool. :)</p>