Pieces of Py #5 Slice me up

Posted on Tue 17 September 2019 in Python • Tagged with Python, Pieces of Py, Slicing • 3 min read

In my learnings of Python I came to know that there is something called slicing. Given a sequence that you want to get certain sub-elements from, you can more easily get the results you want with slicing, instead of e.g. making a couple of for-loops.

Lets start with taking …

Continue reading