'''Question 6.7:
The retry function tries to execute an operation that might fail, 
it retries the operation for a number of attempts. 
Currently the code will keep executing the function even if it succeeds. 
Fill in the blank so the code stops trying after the operation succeeded.
'''

def retry(operation, attempts):
  for n in range(attempts):
    if operation():
      print("Attempt " + str(n) + " succeeded")
    ___
    else:
      print("Attempt " + str(n) + " failed")

retry(create_user, 3)
retry(stop_service, 5)