Submitting Code
How to submit your code to Gradescope for grading.
Before You Submit
Test Your Code
Always run your code locally first:
- Click Run Code
- Check the output matches expectations
- 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:
- "Submitting..." — Your code is being sent
- "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 GradescopeSubmission 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:
- Wait a moment
- Try submitting again
- 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:
- Go to the assignment
- Click Submission History
- 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
| Result | Meaning |
|---|---|
| ✓ Passed | Your code produced the correct output |
| ✗ Failed | Output didn't match expected |
| Error | Your code crashed during the test |
If Tests Fail
- Read the test name — it often hints at what's being tested
- Check the expected vs. actual output
- Fix your code
- 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!