title: while loop keeps running (help)
body: <p>I'm creating a mini game in python where you need to guess the secret safe code. now I'm working on the logic and just can't seem to get it right. here's my code:</p>
  <pre><code>import random, time
  
  user = input(&quot;Enter your name: &quot;)
  bet_coins = 7000
  
  # ******************
  secret_code = ['12', '1', '7', '4']
  # ******************
  print(&quot;Welcome to the safe game, &quot;  + user[0].upper() + user[1::] + &quot;.&quot;)
  time.sleep(2)
  print(&quot;Your goal here is to guess the safe key.&quot;)
  time.sleep(2)
  print(&quot;Here's how you start:&quot;)
  time.sleep(2)
  user_decision = input(&quot;To play send *play*, for rules send *rules*\n&quot;).lower()
  time.sleep(2)
  
  def checkScore():
      user_guess_fixed = user_guess.split()
      print(user_guess_fixed)
  #problem start
  while user_decision != 'play' or user_decision != 'rules': 
      if user_decision == 'play':
              user_decision = None 
              user_guess = input(&quot;HERE WE GO! guess the code! \n(remember, 4 blocks, each one is a number between 1-20, e.g '1 2 3 4'):\n&quot;)
              checkScore()
  
      elif user_decision == 'rules':
              print(&quot;bad&quot;)
      else:
          user_decision = input(&quot;Oops, invalid entry. To play send *play*, for rules send *rules*\n&quot;).lower()
          time.sleep(2)
  </code></pre>
  <p>my problem is I'm not sure how to fix the logic of this while statement.
  when you send play and then guess it prints the guess like it should but then goes to looping the else.
  can someone help? CHEERS</p>