Permutations are the number of different combinations you can make when order matters. Permutations are a statistical tool data scientists, and data analysts use from time to time, and it is an important skill to know. To make a permutation function, you will need the itertools library.

To start, import…

This is a good thing to try in prep for an interview or just general skills in python. Even if you are not asked in an interview to do this, it is still a good skill to know how to do it.

Let’s start by defining our function.

By defining a function for this, we can create a system that will more easily reverse any string. Creating a function is also more code friendly because it is more general.

In Python, dictionaries are powerful resources that are capable of storing a lot of information. I. this post, I will show you how to create a dictionary with multiple elements and how to delete one of those items.

Let’s name our dictionary people and add our elements.

We have three keys: Steve, Tim, and Frank. Each of these keys has two values, age and last name. If we want to pull our first item, we will do the following:

Defining functions is a great way to demonstrate your coding ability. It shows you know how to create something that doesn't need to be changed every time to run. I mean that you do not have to change numbers or variables to get the outcome you desire. This could be…

Joseph Hart

Data Scientist

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store