fork(1) download
  1. answer = """
  2. models sold in last 4 weeks
  3. +---------------+
  4. | pcid |
  5. +---------------+
  6. | 22bv03 |
  7. | 3eer3d |
  8. | fes44h2j555j |
  9. | 4mee33ikj5sq1 |
  10. | 99dkk3bvr32a |
  11. | cv44trmq011sa |
  12. | lo33xc1a |
  13. +---------------+***For more information, please visit the company page.
  14. """
  15. sep = '+---------------+'
  16. start = answer.find(sep)
  17. end = answer.rfind(sep)
  18. print(answer[start:end+len(sep)])
Success #stdin #stdout 0.02s 9256KB
stdin
Standard input is empty
stdout
+---------------+
|      pcid     |
+---------------+
|     22bv03    |
|     3eer3d    |
|  fes44h2j555j |
| 4mee33ikj5sq1 |
|  99dkk3bvr32a |
| cv44trmq011sa |
|    lo33xc1a   |
+---------------+