Kat McKelvie

Python Get Values from a Nested Dictionary

A Python nested dictionary is a dictionary with another dictionary or dictionaries nested within (dictionary of dictionaries or collection of collections). Nested dictionaries are one way to represent structured data (similar to a database table(s) relationship). An analogy for this concept is the Russian Nesting Dolls.   Our article focuses on various ways to retrieve …

Python Get Values from a Nested Dictionary Read More »

Python Dictionary: How to Create, Add, Replace, Retrieve, Remove

Python defines the dictionary data type as an unordered collection that contains key:value pairs. The key:value pairs (separated by commas) are wrapped inside curly brackets {}.   Each key inside the dictionary must be unique and immutable. Dictionary keys can be one of the following data types: integer, string, or tuple. Dictionary keys can not …

Python Dictionary: How to Create, Add, Replace, Retrieve, Remove Read More »

Python – How to Skip the First Entry in a Loop?

There are various ways to skip the first entry in Python loops. You will need to determine which example best satisfies your coding needs. Skip First Entry using Slicing Python offers a unique feature, slicing.  This feature enables the coder to quickly access various data types, such as lists, tuples, and strings. This feature is …

Python – How to Skip the First Entry in a Loop? Read More »