Python

Create basic Python Assignment

create course

Create an assignment

  • Click on connect on the course.

  • Click on formgrader tab on menubar. It will open a new page on new tab.

  • Create one assignment and click on the link mentioned in the Name (first column).

Tip

You can download basic python assignment file with following link.
Download Python.ipynb file

  • You can upload it by clicking on upload button right side of the jupyter notebook, select the file already downloaded and click on upload button.
  • Uploaded file is a assignments. you'll see assn-python in file section. You can open it by clicking on it.
  • To verify this assignment is working correctly, You can click on validate button that you can find in the tool bar.
  • Congratulations! ✨ 🔥 👏

How to install and use third party libaries?

  • Open terminal.

Open terminal

  • Install python package in terminal.
pip install numpy matplotlib
conda install numpy matplotlib
  • To test libraries.
%matplotlib inline
import matplotlib.pyplot as plt
import numpy as np

x = np.linspace(0, 10, 100)

plt.plot(x, x, label='linear')
plt.legend()
plt.show()