Check if a key exists in a dictionary | Python
To prevent errors, we sometimes want to check if a key exists in a Python dictionary. Here's how you do that.
Read moreIn this category I will create small snippets of code, tips and tricks and similar for Python.
To prevent errors, we sometimes want to check if a key exists in a Python dictionary. Here's how you do that.
Read more
Sometimes we have a list of objects we want to clean for duplicates. Here's how you do that.
Read more
Every now and then, we want to check if an e-mail address is valid. Maybe you're building a user sign up or a newsletter registration form?
Read more
Learn how easy it is to connect to your twitter account and post a tweet using Python
Read more
This guide will show you how to install and manage multiple versions of Python.
Read more
In this part of the tutorial series we'll learn about lists. Lists are collections of data like strings, numbers, etc.
Read more
In the previous post we learned the basics about string. In this part, we'll learn how to create a python file and execute it in the command line.
Read more
In the previous post we installed Python and checked that we had the correct version installed. In this post we'll start diving into some basic python coding.
Read more
Python can be used for a wide variety of things. Everything from small scripts, to websites, games and applications. In this step by step guide, I'll teach you everything you need to know to get started with Python.
Read more
If you want to get JSON from a website you need to import a few libraries and run a request. Here's how you do it.
Read more
In this guide, I will show you how to read a file, line by line using Python.
Read more
In this guide, I will show you how easy it is to store information in files using Python.
Read more
Sometimes when you run a script on your computer, you want to make it more dynamic by accepting parameters from the command line.
Read more
Creating a simple password generator using Python can be a fun exercise and it will teach you some basic Python.
Read more
Python has something called lists which is a collection of objects.
Read more
A string can be anything from a letter, to a word or a whole sentence.
Read more