Python

Every Python Tuple Method Explained Simply (plus bonus tidbits)

A tuple in Python is a data structure that is similar to a list but it is unchangeable. This means that it is immutable by design. Lists, in contrast, are highly mutable. If you try and make changes to an immutable object, it will throw an error. Here is a

1st Jul, 2021

Read: 2 min read

Every Python List Method Explained Simply

A list is a data type in Python that lets you store linear data. Each item is stored with a numerical index attached to it so that it becomes easily accessible later. A Python list is defined as comma-separated items inside a pair of (). Here's a quick recap: * written with

1st Jul, 2021

Read: 3 min read

Subscribe to our newsletter

Great! Check your inbox and click the link.
Sorry, something went wrong. Please try again.

Every Python Dictionary Method Explained Simply

Here is a quick recap of how dictionaries work. * written with {} * changeable, unordered, indexed * comes with key-pair values & no duplicates * looks something like this: pythondictionary = {1: 'python', 2: 'data science', 'third': 'JavaScript'} Here is every Python Dictionary method available. Combining dictionaries To combine two dictionaries, use a leading ** and then

30th Jun, 2021

Read: 3 min read

How Python Replaced Java As The Starter Language

From Bootcamps to College Classes — Python is everywhere Back in the early 2010s, Java was the ‘in vogue’ thing that everyone learned as their first starter programming language. If not, then it’s one of the C families. Somewhere during the 10 years in between, Python took over and became

29th Jun, 2021

Read: 5 min read

Using format() in Python with placeholder values

In Python, you can use {} as placeholders for strings and use format() to fill in the placeholder with string literals. For example: print("You have {} apples.".format(5)) # this will print: # You have 5 apples. The format() method lets you list out the strings you want to place in relation

28th Jun, 2021

Read: 2 min read

Python Collections & Specialized Collection Data Types

Crash Course Into Python Part 2 [Click here for Part 1] [https://www.dottedsquirrel.com/python-datatypes/] What Are Collections In Python? Collections in Python are basically container data types — namely, lists, tuples, sets, and dictionaries. They have different characteristics based on usage. Here is a quick summary of what each

22nd Jun, 2021

Read: 5 min read

Everything You Need To Know About Python Data Types & Variables

Starting with the Basics In a nutshell, a variable is a memory location where you can store a value. This value may or may not change in the future. In Python, the declare a variable, you just have to assign a variable to it. For example: x = 5 x is

22nd Jun, 2021

Read: 6 min read