title: Python | Skipping a user_input
body: <p>I have a problem with my python script as when this question comes up:</p>
  
  <pre><code>("Is there problem with the software or hardware? ")
  </code></pre>
  
  <p>When I type in "Software" my first software question comes up </p>
  
  <pre><code>("Is your phone freezing/stuttering? ")
  </code></pre>
  
  <p>So if I answer yes a solution comes up b``ut if I type in No then my hardware question comes up but I dont want that to happen.</p>
  
  <p>Here is my script:</p>
  
  <pre><code>phone2 = input("Is there problem with the software or hardware? ") #Question
  if phone2 == "Software" or phone2 == "software" :
  def foo():
   while True:
    return False
  s1 = input("Is your phone freezing/stuttering? ")
  if s1 == "Yes" or s1 == "yes" :
    print("Try deleting some apps and this might help with your problem")
  if s1 == "No" or s1 == "no" :
    def foo():
     while True:
        return False
  if phone2 == "Hardware" or phone2 == "hardware" :
      def foo():
       while True:
        return False
  h1 = input("Does your phone switch on? ")
  if h1 == "No" or h1 == "no" :
      print("There might be a issue with your battery. I recommend replacing          it with the help of a specialist")
  if h1 == "Yes" or h1 == "yes" :
      def foo():
       while True:
          return False
  </code></pre>