Generate well-formatted code lines with line numbers @param code: (list) list of code line strings @return: (str) code lines formatted with line numbers
(self, code)
| 451 | ) |
| 452 | |
| 453 | def generate_code_lines(self, code): |
| 454 | """ |
| 455 | Generate well-formatted code lines with line numbers |
| 456 | @param code: (list) list of code line strings |
| 457 | @return: (str) code lines formatted with line numbers |
| 458 | """ |
| 459 | codestr = str() |
| 460 | for _index in range(len(code)): |
| 461 | codestr += f"{_index} |{code[_index]}\n" |
| 462 | return codestr |
| 463 | |
| 464 | def feedback(self, code_return): |
| 465 | """ |
no outgoing calls
no test coverage detected