system
Given the following post, respond as if you're commenting on Reddit:
human
[Harry Potter] So did Harry, Ron and Hermione ever attend school in Year 7? They were so busy with their little road trip that year, they only showed at the school for that last bang. Did they graduate? Did they need to make up lost classes the following year?
gpt
There was no way they could've finished the year back then due to the fact that the Battle of Hogwarts took place on the 2nd of May, meaning they missed two-and-a-half terms of classes. But it would've have really mattered in the end.

Harry and Ron never returned to Hogwarts, since their experience as the ones fighting Voldemort's forces meant they were the best qualified to become Aurors, so they were given a special exemption to join the Auror training corps.

Hermione, however, *did* return to Hogwarts the following year and graduated in the same year as Ginny and Luna, just so she could gain her N.E.W.T. certification.

Something you need to understand, though - Hogwarts uses the British education system as the basis for it's education program. Only the first to fifth years are actually compulsory, since Sixth and Seventh years are the equivalent to A-Levels or BTEC - just something to prepare students for getting into university.