Learning Python #1

Nana Lau
4 min readMay 31, 2021

Last week I talked about what I learn from a photoshop course that I took from Udemy. I had lots of fun writing that blog. I do want to do another “advance” photoshop blog but since I haven’t started on the “advance” photoshop course, I decided to write a blog on something else. Python has been a very popular language across a wide range of technical areas, include machine learning, data analytics, software development… etc. Therefore, this week, I would like to start a series of blogs that will talk about what I learn from another Udemy course that I am currently taking: The Modern Python 3 Bootcamp by Colt Steele. I will use this series of blogs to record what I learn from the course. (Since I am really bad at coming up with new ideas for what I should write for my future blogs, this is my workaround, so bear with me! 。(*^▽^*)ゞ)

An image I borrow from Kylie B, which is her cat and a cute baby ball python name Noodles with his witch hat!

Day 1 of Learning Python! (Yay!)

I completed Section 1 through Section 7 from the course content on the first day. The reason why I am going through the setup process for both Mac and Windows is that I would like to get myself familiar to write code on both Operating Systems.

/// Side notes that you don’t really have to read: In the near future, I am planning on learning more about Unreal Engine, Blender, and 3D Modeling/Rendering. My research on these three topics shows that they generally operate better on a Windows OS compare to Mac OS as of now, therefore I wanted to start getting familiar with working on Windows OS before I get too attached to my Mac. (Sorry Mac but I still love you tho). My Windows will be reserved for gaming and 3D stuff, like Unreal Engine, Blender, 3D Modeling, C++/C#… etc. My Mac will be reserved for software development, like developing Full-Stack apps and all that.

Section 1 is the course introduction, where Section 2 and 3 focus on command line fundamentals for both Windows and Mac. I am used to coding with my Mac, so it took me a while and some research on my own to figure things out on my Windows. Other than that, it went on pretty smooth and quick. For Mac, I use the ordinary simple terminal that was preinstalled in my Mac from the very beginning. For Windows, I will use Windows Powershell. (A little side note for myself: to open a folder in Windows, I will need to type “start .” to open up the file instead of “open .” for Mac)

Section 4 and 5 talked about the Python setup steps for Windows and Mac, along with a small exercise that guides you on how to create a python file (e.g. file.py) and write your first line of python code. It was pretty simple to follow along as you just need to go to python.org, and the website will detect which OS you are currently using and will show you the correct button to click on. The first python code I have ever written is print(“Hello World!”). Which will print “Hello World!” in your terminal/ Powershell. Woohoo! Thats a nice good start.

Section 6 is where the actual Python course starts! This section covers numbers, operators, and how to comment out your code. Colt talks about basic math and operators, with a reminder of PEMDAS for the correct mathematical order. I will not go too into detail as I had code in Ruby and JavaScript before, I don’t think the math basic is necessary to be covered here in this blog. Some special operator includes:

  • ** → For the exponential power
  • % → This is called modulo, it gives you the remainder after you divide two numbers with it
  • // → This is the integer division, it divides the two numbers and will round the result down to the nearest decimal. (e.g. 10//3 = 3)

Section 7 covers variables and strings. Colt discussed the naming convention of variables, data types, string concatenation, formatting strings, string indexes, and converting data types. Lastly, he teaches how to make a converter that takes in user input and convert the input to a desirable outcome and output it to the terminal. (If you want to read the detailed notes on the last two section that I talked about, feel free to check this out)

That is all for day 1 in python! I don’t think many of you will enjoy reading this as of now since these are just some pretty basic stuff and nothing really exciting going on. I will continue this series as I progress through the course. So… bear with me LOL! My “advance” photoshop blog will be coming up soon when I get some time to work on it this coming week. If you are interested in what I am going to make, then lookout for my next blog or two!! O(≧▽≦)O

Peace!

(It is so hard to find a decent picture of python and cat… most of which are python swallowing cats 🥺. So I have decided to put a picture of cat with python code to match up with the theme, alongside a python meme. Enjoy!

I just borrow this off the internet

Have an amazing day everyone! ˭̡̞(◞⁎˃ᆺ˂)◞*✰

--

--

Nana Lau

A real dummy who are trying to learn in a smart way