Today I started an intro course in Udemy which turned out to be pretty useful as it’s easy to forget some of the basics. I learned: You can do math directly within print()! Before I was writing a = 5*5 print(a) #but now print(5*5) It feels obvious now but it’s these little things that makeContinue reading “Python Day 25 – some new basics”
Tag Archives: python
Python Day 24 – functions and datatypes
I started out today trying to do some HackerRank numpy array challenges, but quickly realized that I have a lot more to learn before I should do them. I understood the concept but the syntax was killing me. So I watched a basic YouTube video and learned a few lil things. I learned: Float64 andContinue reading “Python Day 24 – functions and datatypes”
Python Day 23 – (brackets) and inefficiency
Today is another short one due to finals. I did some more practice problems and attempted to figure out two small issues that have been bugging me. I learned: When I get the error ‘is not callable’ for numpy arrays that means I’m trying to call the array as a function, and I need toContinue reading “Python Day 23 – (brackets) and inefficiency”
Python Day 22 – practice makes humble
I just went over previous practice problems I’d already done and wow I did not realize how much I had forgotten. It definitely went faster but still… there’s much more work to do. I learned: To select a column in a numpy array is “arr[::1, 2::]”. And when you’re getting the type you just putContinue reading “Python Day 22 – practice makes humble”
Python Day 21 – general research
Okay today was more of a general YouTube research on Python. I looked at Python Programmer ‘s video on Panda and learned how vital Panda is for data visualization and management. I haven’t used the package yet but I know that’s in the next part of the course I’m doing. I also started Siraj Raval’sContinue reading “Python Day 21 – general research”
Python Day 19 – I know what it does, but not how to do it
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”
Python Day 18 – Practice Frustrations
Today I went through some practice problems in my course book. So I didn’t learn as many new things but rather found out how much I didn’t know about arrays in Numpy. I learned: That you can set an array type to float with np.float64(“array”) A little thing I learned: That instead of redefining arraysContinue reading “Python Day 18 – Practice Frustrations”
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”
The First 15 Days of Learning Python
Hello world! I just watched this wonderful video about advice for learning python which recommended keeping a blog. So here I am. Making a blog for the first time in my life. As the title suggests I technically started learning 15 days ago. I’ve been practicing every day and have logged 7.5 hours so far.Continue reading “The First 15 Days of Learning Python”
