Skip to content
The Renegade Coder Transparent Logo
Menu
  • Articles
    • Blog
    • Code
    • Meta
    • Teach
  • Series
    • A String of Unfavorable Roles
    • Classroom Concepts
    • Coding Tangents
    • Data Structures
    • How to Python
    • Java Basics
    • Journey to a PhD
    • Renegade Curriculum
    • Renegade Travel Tips
    • Sample Programs in Every Language
    • Subscriber Spotlight
    • The Legacy Newsletter
  • Shop
  • Portfolio
  • About
    • Privacy Policy
    • Terms of Service
    • Wall of Fame
    • Wall of Shame
    • World Domination Checklist

Series: How to Python

The How to Python tutorial series strays from the usual in-depth coding articles by exploring byte-sized problems in Python. In this series, students will dive into unique topics such as How to Invert a Dictionary, How to Sum Elements of Two Lists, and How to Check if a File Exists.

Each problem is explored from the naive approach to the ideal solution. Occasionally, there’ll be some just-for-fun solutions too. At the end of every article, you’ll find a recap full of code snippets for your own use. Don’t be afraid to take what you need!

If you have a problem of your own, feel free to ask. Someone else probably has the same problem. Enjoy How to Python!

The Renegade CoderArticlesHow to Python
How to Performance Test Python Code Featured Image
Code

How to Performance Test Python Code: timeit, cProfile, and More

Have you ever wondered how you can performance test you Python code? Luckily, I’ve compiled a short list of options which include timeit and cProfile.

How to Print on the Same Line in Python Featured Image
Code

How to Print on the Same Line in Python: Print and Write

While Python is often convenient, sometimes it’s not. For instance, it’s unclear how you would print on the same line in Python. Luckily, we have the answer!

How to Format a String in Python Featured Image
Code

How to Format a String in Python: Interpolation, Concatenation, and More

In this article, we learn how to format a string in Python using a handful of techniques including concatenation and interpolation.

How to Merge Two Dictionaries in Python
Code

How to Merge Two Dictionaries in Python: Dictionary Comprehensions and Unpacking

Dictionaries by themselves are a great tool, but what if we have more than one? Today, we’re going to learn how to merge two dictionaries in Python.

How to Write a List Comprehension in Python Featured Image
Code

How to Write a List Comprehension in Python: Modifying and Filtering

After covering so many common problems, I thought it would be fun just to explore a chunk of syntax known as the list comprehension in Python.

How to Sort a List of Dictionaries in Python Featured Image
Code

How to Sort a List of Dictionaries in Python: Sort and Sorted

When you work with data in Python, sometimes it’s handy to be able to sort a list of dictionaries. Luckily, I know just the way to do it!

How to Parse a Spreadsheet in Python Featured Image
Code

How to Parse a Spreadsheet in Python: CSV Reader and DictReader

Sometimes you just need to parse a spreadsheet in Python. In this article, we’ll cover three methods which demonstrate just how to do that.

How to Sort a List of Strings in Python Featured Image
Code

How to Sort a List of Strings in Python: Sort, Sorted, and More

Looking for a quick and dirty way to sort a list of strings in Python? Look now further than this The Renegade Coder tutorial which covers several methods.

How to Make Python Script Shortcut with Arguments
Code

How to Make a Python Script Shortcut with Arguments: Batch, Bash, and More

Got a Python script that you wish you could just double-click to run, but it has special arguments? Maybe a shortcut with arguments is the solution.

How to Get the Last Item of a List in Python Featured Image
Code

How to Get the Last Item of a List in Python: Iterable Unpacking and More

When you’re playing around in Python, sometimes it’s nice to be able to get the last item of a list. In this tutorial, we’ll cover just that.

Posts navigation

Older posts
Jeremy Grifski Nature Wedding

Welcome to The Renegade Coder, a coding curriculum website run by myself, Jeremy Grifski. If you like what you see, check out the 5 Ways You Can Support The Renegade Coder. I appreciate the help!

Amazon Affiliate

The Renegade Coder is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com.

Recent Comments

  • Jeremy Grifski on How to Format a String in Python: Interpolation, Concatenation, and More
  • Jeremy Grifski on How to Check if a List is Empty in Python: Type Flexibility and More
  • A. Genchev on How to Check if a List is Empty in Python: Type Flexibility and More
  • Jeremy Grifski on How to Get the Last Item of a List in Python: Iterable Unpacking and More
  • Jeremy Grifski on How to Clone a List in Python: Slice, Copy, and More

Recent Posts

  • How to Improve Coding Comprehension Using Peer Instruction December 6, 2019
  • How to Performance Test Python Code: timeit, cProfile, and More December 2, 2019
  • Guide: Type Hinting in Python 3.5 November 29, 2019
  • I Took StrengthsQuest Twice November 25, 2019
  • Why My Second Hackathon Was Better Than My First November 22, 2019
Love Free Content? Get the Newsletter.
Want to stay updated? Connect on Social Media.
Copyright © 2016-2019 The Renegade Coder