Skip to content

Python Notebooks & Exercises

HarshaVardhanBabu edited this page Nov 25, 2019 · 7 revisions

Notebooks

[Practice Material II](https://github.com/iitmcvg/Python-Exercises) (Exercise I will be sufficient for now.)


Project - I

  • Write the code to determine a given number is prime or not



Try these small exercises out !!!

Assume data whenever required

  1. Create a multiplication table given a number.

  2. Create dictionary with keys as number and value as a cube of the number.

  3. Create a string and convert it to lower,upper,title case and print those.

  4. Given a list, print out the unique elements from the list.



Matplotlib exercise

Plot the following functions . y = x^2 (square of x) . y = x^3 (cube of x)

Try plotting on the same axis and two different axes.

Hint: Use plt.subplots(1,1) for one axis and plt.subplots(1,2) for two axis and this returns axes array


Exercise on Pandas Series

Clone this wiki locally