title: I'm trying to get a separate outcome in this code but it constantly display both. I've tried "if statement" but it doesn't help. Help me plz
body: <pre><code>print('Welcome to Python Times Table')
  wrong_answer = ''
  while True:
      try:
          number = int(input('What number do you want to multiply by: '))
      except ValueError:
          print(&quot;Enter Integer Only&quot;)
          continue
      else:
          for n in range (11):
              res = number * n
              print(f'{number} * {n} = ?') 
              while True: 
                  try:
                      answer = int(input(&quot;Your Answer: &quot;))
                  except ValueError:
                      print('Only Integer Allowed.')
                  else: 
                      if number * n != answer:
                          print(&quot;Incorrect!&quot;)
                          print(f'{number} * {n} = ?')
                          wrong_answer += f'{number} * {n} = {res} -&gt; Your Answer:{answer}\n'
                          continue
                      elif number * n == answer:
                          print('Correct')
                          break 
      print(&quot;These are the answer you missed!&quot;)
      print(wrong_answer)
      
      print('Congratulation! ALL answer are correct!')
  </code></pre>