true, but if the teacher doesnt grde for efficiency and eleegancy and only if it passes test cases, then you are sort of golden, if he is grading for elegance and other practices of good programming, chatgpt is heaven sent