As with many posts in this series, I'm interested in examining some of the pitfalls when learning to code. Today, we'll cover the pitfalls when copying mutable data types.
Tag: Python
How to Write a List Comprehension in Python: Modifying and Filtering
After covering so many common problems, I thought it would be fun just to explore a chunk of syntax known as the list comprehension in Python.
How to Sort a List of Dictionaries in Python: Sort and Sorted
When you work with data in Python, sometimes it's handy to be able to sort a list of dictionaries. Luckily, I know just the way to do it!
Forget endless if statements! It's time to solve Rock Paper Scissors using modular arithmetic in Python.
Most teachers will tell you that the worst part of the job is grading. That's why I automated my grading responsibilities.
How to Parse a Spreadsheet in Python: CSV Reader and DictReader
Sometimes you just need to parse a spreadsheet in Python. In this article, we'll cover three methods which demonstrate just how to do that.