Hi there 馃憢

Welcome to the Slither Into Python blog!

Python Iterators and Generators

Iterators are objects that can be iterated upon. Creating iterators and handling them can be lengthy and counterintuitive. Generators come to the rescue in these situations but before we dive into generators we must understand iterators. Iterators in Python In this section you鈥檒l learn what an iterator is and how to build one. They exist everywhere in Python, often hidden in plain sight and are elegantly implemented in for loops, comprehensions, generators etc....

 路 11 min 路 Slither Into Python

Mutability in Python

What is a mutable type in Python? A mutable type (or mutable sequence) is one that can be changed after it is created. A list is a mutable sequence and can therefore be changed in place. Let鈥檚 refresh our memory on how strings couldn鈥檛 be changed after they were created >>> s = "my string" >>> s[0] = "b" Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: 'str' object does not support item assignment We get an error....

 路 4 min 路 Slither Into Python

Big-O Notation Made Simple

Big O notation made simple If you ever do a technical interview, in 99.9% of cases you鈥檒l be asked to write some code or an algorithm and give it鈥檚 algorithmic complexity. You need to know this stuff and it isn鈥檛 just for Python, this applies to any language! I鈥檓 going to explain this in the simplest way possible while still giving you a good understanding of the topic. Selection sort and Insertion sort for example are what we call quadratic sorting algorithms....

 路 4 min 路 Slither Into Python

The Ultimate Python Roadmap

First of all, I鈥檇 just like to say a huge thank you to everyone who has welcomed this roadmap (I originally posted it on reddit in /r/LearnPython. Since it was so popular, I decided to post it here too as posts on reddit tend to get lost in the vast amount of other posts. Here鈥檚 a Python road-map to take you from complete beginner to advanced with machine learning or web development....

 路 5 min 路 Slither Into Python