title: Python Looping with input parameters
body: <p>I am new to programming and I  am trying to write a python script where the user is asked if they would like to add a name and student to the student list. If they say yes, then they are asked for the input of the name and the id. However, if they say no, its suppose to print whatever is already stored in the student list. </p>
  
  <p>This is my code:</p>
  
  <pre><code>students = [ ]
  
  def prompt_add():
  
  add_more_student = bool(input("Do you want to add students to this list? (yes/NO):"))
  
  add_student(())
  
  if bool == 'yes':
          add_student(())
  else:
  
      print(students)
  
  def add_student(name, student_id=133):
  
      student_name = input("Enter a name:")
      student_id = input("Enter number:")
  
      student = {"name": name, "student_id": student_id}
      students.append(student)
      prompt_add()
      return students
  
  prompt_add()
  </code></pre>
  
  <p>This is the output it keeps printing:</p>
  
  <p><a href="https://i.stack.imgur.com/6sOk5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6sOk5.png" alt="screenshot"></a></p>
  
  <p>Turns out that regardless of if I type yes or no, I still get the question asked. Please, what am I doing wrong? thank you in advance.</p>