ROT13 in Python – Simply Explained

Rot 13 SimpleExplanation

ROT13 is a simple encryption method. It shifts each character of the clear text string 13 positions forward in the alphabet. This Python one-liner does ROT13 encryption for you: Don’t worry if this seems confusing. We’ll explain it all in detail below! Note: the variable cleartxt refers to the string you want to encode. It … Read more

Coding Your Own Google Home and Launch Spotify in Python

Doesn’t this project sound exciting? Project Goal Project goal: code your own Google Home with Python and learn how to use speech recognition to launch Spotify and play songs! Ever wanted to code a powerful yet simple tool that is more bespoke than mainstream devices? We will learn how to implement it in Python with … Read more

How to Disable Unit Tests Temporarily in Python?

Problem Formulation Say, you’ve written a number of unit tests using the unittest module in Pyhton. How can you disable specific unit tests temporarily? In other words: How to skip a unit test in Python’s unittest module? Example: Given the following three unit tests. How to disable tests 1 and 2? Method 1: Skip Test … Read more

Writing Clean Code — Being a Professional [Cheat Sheet + Video]

Download the cheat sheet here (direct PDF download): Have you ever asked yourself, β€œWhat does it mean to be a professional?” This article is about being a professional software developer. It is based on the book, Clean Code by Robert C. Martin. All quotations are from this book.  While reading this article, you will learn … Read more

What are the Applications of Graphs in Computer Science?

[Reading time: 9 minutes] Graphs are everywhere. They are used in social networks, the world wide web, biological networks, semantic web, product recommendation engines, mapping services, blockchains, and Bitcoin flow analyses. Furthermore, they’re used to define the flow of computation of software programs, to represent communication networks in distributed systems, and to represent data relationships … Read more

Best 15+ Machine Learning Cheat Sheets to Pin to Your Toilet Wall

Toilet Wall Cheat Sheet

This article compiles for you the 15 best cheat sheets in the web that help you get started with machine learning. If you’re short on time, here are the 15 direct PDF links (open in a new tab): Each cheat sheet link points directly to the PDF file. So don’t lose any more time, and … Read more

A Bird’s-Eye Perspective on Artificial Intelligence–Written by an AI

This article is contributed by our friendly AI from InferKit that uses a deep neural network to generate text automatically. I (human) guided the AI by proposing different subheadings that may be of interest to the reader. Surprisingly, there are many unique perspectives in the article—and some totally wrong “facts”. So, enjoy this fascinating demonstration … Read more

How To Run Multiple Python Versions On Windows?

Summary: You can run multiple versions of Python on Windows using one of the following methods: Using entire path to execute the code. Creating A Shortcut or Symbolic Link to the executable files. Using Pylauncher: Use Shebang (#) in The Script Run Pylauncher Command Using Virtual Environments. ➠ Problem Formulation: You might have two versions … Read more

Python iter() — A Simple Illustrated Guide with Video

Python’s built-in iter() function returns an iterator for the given object. For example, iter([1, 2, 3]) creates an iterator for the list [1, 2, 3]. You can then iterate over all elements in the iterator, one element at a time, in a for or while loop such as: for x in iter([1, 2, 3]). Basic … Read more