Feeling regret for sending my code to my classmate As an international student, I found hard to integrate well with other classmates. I only have two relatively close friends in my class. When my classmate asked me to send my code to him, I did not reject him as I was afraid of losing this friend. Now, I feel extremely regret as I am facing an accusation of plagiarism. I will never allow others to access my work. I actually have evidence that all works are done by me.

However, I worked extremely hard on my assignment and amended it four times before submission. I do not think that I deserve mark reduction. Are there any things that I can do to change the professor's mind instead of mark reduction? I hope I can do any other things to compensate for my fault instead of mark reduction.
You are entirely at your professor's mercy or lack thereof.

As a student, you are responsible for knowing the regulations of the course and the school. This includes plagiarism and academic misconduct charges. You were told to do all work individually. On multiple occasions you violated that principle and knowingly did so because you did not want to lose a friendship. You intentionally made a choice and now you must face the consequences for making that selection which fell afoul of regulations.

The fact that you did all the work individually does not clear you of misconduct because you intentionally aided someone else in violating the academic misconduct regulations. If your friend had stolen your work without your knowledge, that would be an entirely different issue. However, you willingly participated in the process, which makes you just as much of a "cheater" as your "friend."

So, you may try to argue about your lack of culpability but your instructor is within rights to pursue academic misconduct charges against you. Any offer of a "reduced" sanction or punishment is entirely at your instructor's discretion.