Python course
Morten Hansen • March 15, 2021
Cisco - Netacad "Programming Essentials In Python"
A few toughts about learning Python
A few toughts about Python!
My experience with Python is not that long and I've tried to learn it before. I feel like I have controll of the basics but when it gets more advanced it gets more complicated. I really enjoy coding with Python and I want to become good at it.
I've tried to learn Python from "automate the boring stuff", the mobile application "sololearn", from YouTube, etc. This time I'm taking a new approach. Seeing how I got access to Cisco's web course material "Programming Essentials In Python", I figured that I'll give it a go.
So far I'm through module 1 and 2. It has been very basic for now, but a lot of lab exercises, which is something I find quite usefull! In the third module I encoutered something new - the bitwise - part of Python. Never ever had I heard about the bitwise operators, and I tought the use of the bitwise operators:
& ~ | ^
was the same as the logical operators:
"and", "or", "not".
When I look at it in hindsight it all makes sense now - why I got an error message when trying to use the & in an IF statement.. I tought was the same as and. Now I can see that this was a big logical fail.
a = 0
b = 1
if a == 0 & b == 1:
print("Happy days!")
Result: Failure...
Learning stuff like this is amazing and I finally feel like moving further down the road of finally understanding (a bit) of Python.
Best regards
M.