There seems to be a trouble with tuples: some Python developers don’t fully understand how they’re different from lists don’t know what they’re supposed to do with them. In this article, we’ll clear up the differences between tuples and lists as well as show how useful they can be in real code.
Tuples vs. Lists
Lists (which...
Read more
Python and AI (Part 2)
In our previous post, we reviewed some of the main sub-fields within AI as well as what AI requires from a programming language. In this post, we’ll discuss Python’s critical role in current AI software.
Laying the Foundation with NumPy
At the end of Part 1, we asked if Python provides support for...
Read more
Python and AI (Part 1)
Behind all the hype of self-driving cars, the automation of jobs and smart robots is sophisticated software teamed with powerful hardware. In this first post of a two-part series, we’ll see why the same features which have propelled Python’s popularity in other niches allows Python to also feature prominently in artificial intelligence (AI).
What is AI?
AI...
Read more
Lord of Strings (Part 2)
In our previous post, we wrote a program to check sensor data for a home IoT project. It works, but has a few problems.
In order to fix those problems, we decided we needed a:
Read more
- Flexible
- and Concise
- way to substitute parts in a “template string”, While
- formatting
- and converting those parts ...