NumPy & Matplotlib
Week 4
NumPy
- NumPy: the absolute basics for beginners
- PDA 4: NumPy Basics: Arrays and Vectorized Computation
- Advent of Code 2015, Day 6 (hint: use a 1000x1000 2D array)
Matplotlib
- Matplotlib: tutorials
- The Python Graph Gallery
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
- hint:
- Project Euler, Problem 92
Also worth looking at: Seaborn
- Seaborn: statistical data visualization