Skip to content

Repository files navigation

How to Python - Source Code

Welcome to a collection of Jupyter Notebooks from the How to Python series on The Renegade Coder. For convenience, you can access all of the articles, videos, challenges, and source code below. Alternatively, I keep an enormous article up to date with all these snippets as well.

IndexTitlePublish DateArticleVideoChallengeNotebookTesting
1How to Empty a List in Python: Clear(), Del, and More!Fri, 23 Apr 2021 14:00:00 +0000ArticleVideoChallengeTest
2How to Capitalize a String in Python: Upper(), Capitalize(), And MoreFri, 15 Jan 2021 15:00:00 +0000ArticleVideoChallengeTest
3How to Convert an Integer to a String in Python: Type Casting and f-StringsMon, 16 Nov 2020 15:00:00 +0000ArticleChallengeTest
4How to Plot a Line Using Matplotlib in Python: Lists, DataFrames, and MoreFri, 09 Oct 2020 14:00:00 +0000Article
5How to Swap Variables in Python: Temporary Variables and Iterable UnpackingMon, 05 Oct 2020 14:00:00 +0000Article
6How to Open a File in Python: open(), pathlib, and MoreFri, 24 Jul 2020 14:00:00 +0000ArticleChallenge
7How to Remove Duplicates From a List in Python: Sets, Dicts, and MoreMon, 20 Jul 2020 14:00:00 +0000ArticleChallenge
8How to Iterate Over Multiple Lists at the Same Time in Python: Zip() and More!Fri, 10 Jul 2020 14:00:00 +0000ArticleChallenge
9How to Check If a Key Exists in a Dictionary in Python: in, get(), and MoreFri, 26 Jun 2020 14:00:00 +0000ArticleChallenge
10How to Loop Over a Dictionary in Python: Keys, Values, and MoreFri, 12 Jun 2020 14:00:00 +0000ArticleNotebook
11How to Split a String by Whitespace in Python: Brute Force and split()Fri, 17 Apr 2020 14:00:00 +0000Article
12How to Convert a String to Lowercase in Python: lower() and MoreMon, 30 Mar 2020 14:00:00 +0000Article
13How to Round a Number in Python: Truncation, Arithmetic, and MoreMon, 23 Mar 2020 14:00:00 +0000ArticleChallenge
14How to Create a List in Python: Loops, Comprehensions, and MoreMon, 16 Mar 2020 14:00:00 +0000ArticleChallenge
15How to Compute Absolute Value in Python: Control Flow, Abs(), and MoreFri, 13 Mar 2020 14:00:00 +0000ArticleChallenge
16How to Obfuscate Code in Python: A Thought ExperimentMon, 09 Mar 2020 14:00:00 +0000Article
17How to Increment a Number in Python: Operators, Functions, and MoreFri, 06 Mar 2020 15:00:00 +0000ArticleChallenge
18How to Brute Force Sort a List in Python: Bubble, Insertion, and SelectionMon, 02 Mar 2020 15:00:00 +0000Article
19How to Compare Strings in Python: Equality and IdentityFri, 14 Feb 2020 15:00:00 +0000ArticleVideo
20How to Write a Loop in Python: While and ForMon, 27 Jan 2020 15:00:00 +0000ArticleNotebook
21How to Comment Code in Python: Inline, Multiline, and DocstringFri, 17 Jan 2020 15:00:00 +0000ArticleVideo
22How to Add an Item to a List in Python: Append, Slice Assignment, and MoreFri, 10 Jan 2020 15:00:00 +0000Article
23How to Check if a String Contains a Substring in Python: In, Index, and MoreMon, 06 Jan 2020 06:40:00 +0000ArticleChallenge
24How to Perform a Reverse Dictionary Lookup in Python: Generator Expressions and MoreFri, 03 Jan 2020 15:00:00 +0000Article
25How to Performance Test Python Code: timeit, cProfile, and MoreMon, 02 Dec 2019 15:00:00 +0000Article
26How to Print on the Same Line in Python: Print and WriteFri, 13 Sep 2019 14:00:23 +0000Article
27How to Format a String in Python: Interpolation, Concatenation, and MoreFri, 06 Sep 2019 14:00:11 +0000ArticleVideo
28How to Merge Two Dictionaries in Python: Comprehensions, Unpacking, and the Union OperatorFri, 07 Jun 2019 14:00:13 +0000Article
29How to Write a List Comprehension in Python: Modifying and FilteringFri, 03 May 2019 14:00:58 +0000ArticleVideoNotebook
30How to Sort a List of Dictionaries in Python: Sort and SortedMon, 25 Mar 2019 14:00:09 +0000Article
31How to Parse a Spreadsheet in Python: CSV Reader and DictReaderMon, 04 Mar 2019 15:00:18 +0000Article
32How to Sort a List of Strings in Python: Sort, Sorted, and MoreFri, 07 Dec 2018 15:00:12 +0000Article
33How to Make a Python Script Shortcut with Arguments: Batch, Bash, and MoreMon, 09 Apr 2018 14:00:53 +0000Article
34How to Get the Last Item of a List in Python: Iterable Unpacking and MoreWed, 14 Mar 2018 14:00:32 +0000ArticleVideo
35How to Copy a List in Python: Slice, Copy, and MoreThu, 08 Mar 2018 15:00:50 +0000ArticleVideo
36How to Check if a List is Empty in Python: Type Flexibility and MoreWed, 07 Mar 2018 15:00:41 +0000ArticleVideo
37How to Convert Two Lists into a Dictionary in Python: Zip, Comprehensions, and LoopsThu, 01 Mar 2018 16:42:08 +0000ArticleVideo
38How to Check if a File Exists in Python: Try/Except, Path, and IsFileSat, 17 Feb 2018 16:16:00 +0000Article
39How to Sum Elements of Two Lists in Python: Comprehensions and MoreSat, 09 Dec 2017 23:21:21 +0000ArticleVideo
40How to Invert a Dictionary in Python: Comprehensions, Defaultdict, and MoreMon, 04 Dec 2017 19:55:17 +0000ArticleVideo

About

A collection of Jupyter Notebooks from the How to Python series

Topics

Resources

Code of conduct

Contributing

Stars

88 stars

Watchers

10 watching

Forks

Sponsor this project

Used by

Contributors

Languages