Create grade.py

This is the simple code written in Python.