I've picked out eight Python libraries that might enable you to do exactly that, and they're all easy and fun to use. If you want to get started, I've created a GitHub repository with sample code ...
However, one of the core developers of Python, Barry Warsaw, also known as Uncle Barry, preferred to use diamond operators (<>) for inequality. Here's the code bit. Another fun module to play with.
After introducing 40,000 students to the wonderful world of programming, Code in Place is back in 2025 for its fifth ...