Skip to content

Submitting Code ​

How to submit your code to Gradescope for grading.

Before You Submit ​

Test Your Code ​

Always run your code locally first:

  1. Click Run Code
  2. Check the output matches expectations
  3. Fix any errors

Common Pre-Submit Checklist ​

  • [ ] Code runs without errors
  • [ ] Output looks correct
  • [ ] All functions are implemented
  • [ ] No debug print() statements left in

Submitting ​

Step 1: Click Submit ​

Click the green Submit Code button in the bottom bar.

Step 2: Wait for Confirmation ​

You'll see the status change:

  1. "Submitting..." — Your code is being sent
  2. "Submitted successfully" — Done!

Step 3: View Results ​

A link appears: "View on Gradescope"

Click it to see:

  • Your submitted code
  • Autograder results
  • Your score
  • Any feedback

What Happens Behind the Scenes ​

Click "Submit Code"
    ↓
Code sent to server
    ↓
Server submits to Gradescope API
    ↓
Gradescope receives your code
    ↓
Autograder runs your code
    ↓
Results available on Gradescope

Submission Errors ​

"No valid Gradescope session" ​

Cause: The server's Gradescope credentials expired.

What to do: Contact your instructor. They need to refresh the credentials.

"Missing required fields" ​

Cause: Assignment not configured correctly.

What to do: Make sure you're accessing the assignment through D2L, not directly.

"Submission failed" ​

Cause: Network error or Gradescope issue.

What to do:

  1. Wait a moment
  2. Try submitting again
  3. If it persists, contact your instructor

Multiple Submissions ​

Can I Submit Multiple Times? ​

Yes! You can submit as many times as you want before the deadline.

Which Submission Counts? ​

Typically, your last submission is graded. Check with your instructor for their policy.

Viewing Past Submissions ​

On Gradescope:

  1. Go to the assignment
  2. Click Submission History
  3. See all your submissions with timestamps

After Submitting ​

Check Your Score ​

On Gradescope, you'll see:

  • Total score — Your overall grade
  • Test results — Which tests passed/failed
  • Feedback — Comments from the autograder

Understanding Test Results ​

ResultMeaning
✓ PassedYour code produced the correct output
✗ FailedOutput didn't match expected
ErrorYour code crashed during the test

If Tests Fail ​

  1. Read the test name — it often hints at what's being tested
  2. Check the expected vs. actual output
  3. Fix your code
  4. Submit again

Tips ​

Submit Early ​

Don't wait until the last minute. Submit early to:

  • Verify your submission works
  • See autograder feedback
  • Have time to fix issues

Keep a Backup ​

Copy your code somewhere safe (notes, email, etc.) before submitting, just in case.

Read the Feedback ​

Autograder feedback often tells you exactly what's wrong. Read it carefully!

Released under the MIT License.