I’d ask a priest. Probably depends on the homework assignment and the implications / weight of the assignment in the scheme of the overall course grade. If it was 1% of your semester grade that seems very different than a project worth 33% of your grade.
By the way, the teacher in me just has to say - you do realize you’re not learning the material this way & it’s going to come back to bite you after, right? Okay off my soapbox.