DEV Community 👩‍💻👨‍💻

How to Python Series' Articles

Back to Jeremy Grifski's Series
How to Check if a File Exists in Python
Cover image for How to Check if a File Exists in Python

How to Check if a File Exists in Python

Reactions 26 Comments 1
3 min read
How to Check if a List is Empty in Python
Cover image for How to Check if a List is Empty in Python

How to Check if a List is Empty in Python

Reactions 10 Comments 2
3 min read
How to Invert a Dictionary in Python: Comprehensions, Defaultdict, and More
Cover image for How to Invert a Dictionary in Python: Comprehensions, Defaultdict, and More

How to Invert a Dictionary in Python: Comprehensions, Defaultdict, and More

Reactions 13 Comments 7
4 min read
How to Sum Elements of Two Lists in Python
Cover image for How to Sum Elements of Two Lists in Python

How to Sum Elements of Two Lists in Python

Reactions 12 Comments 2
4 min read
How to Parse a Spreadsheet in Python
Cover image for How to Parse a Spreadsheet in Python

How to Parse a Spreadsheet in Python

Reactions 44 Comments 4
6 min read
How to Sort a List of Dictionaries in Python
Cover image for How to Sort a List of Dictionaries in Python

How to Sort a List of Dictionaries in Python

Reactions 9 Comments 4
5 min read
How to Write a List Comprehension in Python
Cover image for How to Write a List Comprehension in Python

How to Write a List Comprehension in Python

Reactions 57 Comments 2
6 min read
How to Merge Two Dictionaries in Python
Cover image for How to Merge Two Dictionaries in Python

How to Merge Two Dictionaries in Python

Reactions 41 Comments 6
5 min read
How to Print on the Same Line in Python: Print and Write
Cover image for How to Print on the Same Line in Python: Print and Write

How to Print on the Same Line in Python: Print and Write

Reactions 49 Comments 1
4 min read
How to Compare Strings in Python: Equality and Identity
Cover image for How to Compare Strings in Python: Equality and Identity

How to Compare Strings in Python: Equality and Identity

Reactions 16 Comments 1
7 min read
How to Performance Test Python Code: timeit, cProfile, and More
Cover image for How to Performance Test Python Code: timeit, cProfile, and More

How to Performance Test Python Code: timeit, cProfile, and More

Reactions 18 Comments 3
8 min read
How to Perform a Reverse Dictionary Lookup in Python: Generator Expressions and More
Cover image for How to Perform a Reverse Dictionary Lookup in Python: Generator Expressions and More

How to Perform a Reverse Dictionary Lookup in Python: Generator Expressions and More

Reactions 9 Comments
8 min read
How to Check if a String Contains a Substring in Python: In, Index, and More
Cover image for How to Check if a String Contains a Substring in Python: In, Index, and More

How to Check if a String Contains a Substring in Python: In, Index, and More

Reactions 11 Comments
7 min read
How to Add an Item to a List in Python: Append, Slice Assignment, and More
Cover image for How to Add an Item to a List in Python: Append, Slice Assignment, and More

How to Add an Item to a List in Python: Append, Slice Assignment, and More

Reactions 17 Comments 1
9 min read