A Python list times two repeats the list. A NumPy array times two scales every number. Run the first cell, then the second. The second cell never rebuilds scores.
Data analysis labpractice
Scale an array without a loop
Build an array, double it, and keep the values that pass a test. The second cell uses the name from the first.
Preparing NumPy, Pandas, and MatplotlibShift+Enter runs the cell you are in.
1
Double every score
2
Keep the high scores
3