NumPy & Matplotlib

Week 4

NumPy

Matplotlib

General Practice Problems

  • Project Euler, Problem 37
  • Project Euler, Problem 59
    • hint: ciphertext = np.loadtxt("https://projecteuler.net/project/resources/p059_cipher.txt", dtype=int, delimiter=',') will load the ciphertext into a NumPy array
    • hint: ord() converts a character to its integer ASCII code, chr() converts an integer ASCII code to a character
    • hint: the ^ operator performs XOR on two integers
  • Project Euler, Problem 92

Also worth looking at: Seaborn

  • Seaborn: statistical data visualization

In-class demo notebook