Still stuck on those practice problems… (for reference right now I’m trying to figure out how to only output all the even numbers of a numpy array) I learned: I now know what % does! It takes the remainder, or ‘modulo’, of a number. For instance 5%2 = 0.5. The function itself is also calledContinue reading “Python Day 19 – I know what it does, but not how to do it”
Tag Archives: isaac
Python Day 17 – Slicing and Dicing with Numpy
Good morning y’all… I learned: That you can take slices of rows/columns (for instance matrix[0] is first row, matrix[1] is second row, and so on). You can also make a .copy of a slice rather than reference the original, although I’m not sure the significance of that quite yet. To only get odd or evenContinue reading “Python Day 17 – Slicing and Dicing with Numpy”
