title: Why is my code raising a TypeError exception?
body: <p>When I run the following code:</p>
  
  <pre><code> while start == "yes":
  
      player1name = input("Player 1 what shall your character be called?")
      player2name = input("Player 2 what shall your character be called?")
  
      player1strength=print("Player 1,your strength score is :)", random.randint(1,7))
      player2strength=print("Player 2,your strength score is :)", random.randint(1,7))
      strengthdifference =(int(player1strength) - int(player2strength))
      if strengthdifference&lt;0:
          strengthdifference=player2strength-player1strength
          strengthdifference=strengthdifference/5
          player1skill=int(input("Player 1,enter your skill score :)"))
          player2skill=int(input("Player 2,enter your skill score :)"))
          skilldifference=player1skill-player2skill
  </code></pre>
  
  <p>I'm getting this traceback:</p>
  
  <pre><code>File "C:\Computing\A453 Assessment\Task 3\main.py", line 18, in &lt;module&gt;
      strengthdifference =(int(player1strength) - int(player2strength))
  TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
  </code></pre>
  
  <p>What am I doing wrong? How can I fix the error?</p>