## Is AI Sentient? I Made a Coffee Break Python GPT, and This Happened π€―

I just completed this fun puzzle creator GPT that tracks your Elo skills and challenges you with Python puzzles in the style of the Finxter app. It tracks your skills while you progress through subsequently more challenging Python puzzles. ππ§βπ» Try It Yourself: Coffee Break Python GPT (Finxter Original) You can try it yourself; it’s … Read more

## The Maximum Profit Algorithm in Python

This article presents an algorithmic problem with practical value for stock market analysis. For instance, suppose you are trading the cryptocurrency Ethereum. How much profit in dollars can you make by buying low and selling high based on historical data? Maximum Profit Basic Algorithm The max profit algorithm calculates the maximum profit you’d obtain by … Read more

## Finxter.com Puzzles by Topic

Arithmetic Arithmetic Operations https://app.finxter.com/learn/computer/science/314 Integer Arithmetic https://app.finxter.com/learn/computer/science/381 Python Float Arithmetic https://app.finxter.com/learn/computer/science/320 OOP Basics of OOP https://app.finxter.com/learn/computer/science/527 OOP https://app.finxter.com/learn/computer/science/606 OOP – Representation https://app.finxter.com/learn/computer/science/594 Filter Filter and Recursion https://app.finxter.com/learn/computer/science/493 Set, Lambda, and Filter https://app.finxter.com/learn/computer/science/399 The Filter Function https://app.finxter.com/learn/computer/science/375 DataFrames DataFrames and Datatypes https://app.finxter.com/learn/computer/science/614 DataFrames and Series https://app.finxter.com/learn/computer/science/612 Merging DataFrames https://app.finxter.com/learn/computer/science/621 Add Column To DataFrame https://app.finxter.com/learn/computer/science/616 DataFrame Creation … Read more

## Python Puzzle Rush: Watch Me Solving 129 New Python Puzzles

Puzzle-based learning is the single most best way for many coders to improve their skills on a constant basis. That’s why one of our Finxter mantras to boost your Python skills is: A puzzle a day to learn, code, and play! Are you looking for a fun way of improving your skills? The following Python … Read more

## [Python Puzzle Rush] Do You Understand Python Loops? ?

This article gives you five code puzzles to help you master basic looping in Python. If you are a Python expert, you solve all of them without even the slightest mistake. If you are a Python intermediate, you make one or two mistakes. If you are a Python beginner, you should get at least one … Read more

## [Python Mini Game] Can You Help Alice Find Her Dad?

Alice ? has lost her father in the maze. ? To make matters worse, the maze is full of evil animals ? that keep her father captured. ? The animals play a game with her: they will only leave her through if she solves the difficult Python puzzles. ? Fortunately, you have trained your puzzle … Read more

## Python Integer Division [2-Min Tutorial]

When I started to learn Python 3, I used to be confused about the semantics of dividing two integers. Is the result a float or an integer value? The reason for my confusion was a nasty Java bug that I once found in my code. The code was supposed to perform a simple division of … Read more

## 10 Python Puzzles to Discover Your True Skill Level

Do you belong to the top 50% of Python coders? This article poses you 10 intermediate-level Python puzzles to test yourself. By solving all 10 Python puzzles and tracking your success rate, you will discover your exact Python skill level. The Method We Used to Measure Your Skills with Python Puzzles The idea of solving … Read more

## How to Find the Maximum Value in a Python Dict?

There are three problem variants of finding the maximum value in a Python dictionary: In the following, you’ll learn how to solve those in the most Pythonic way: Find Maximum Value & Return Only Value The output is: Find Maximum Value & Return (Key, Value) Pair The output is: Find Maximum Value & Return Only … Read more

## How to Sort in Python with the Lambda Function as Key Argument?

Challenge: This article shows how to sort a Python list using the key argument that takes a function object as an argument. Quick Solution: You can use the lambda function to create the function on the fly as shown in the following example: Explanation: The code uses the key argument and passes a lambda function … Read more

## The Pathfinder Graph Algorithm in Python

Knowing the basics is what sets apart the great from the intermediate coders. In other words, a simple and effective way to grow your skills is to learn the basics of computer science. Python Pathfinder Algorithm In this tutorial, you’ll learn about the pathfinder algorithm that recursively determines whether there’s a direct or indirect path … Read more

## How to Run a Python Program Forever?

Challenge: Run a piece of Python code forever—until it is forcefully interrupted by the user. Solution: use a while loop with a Boolean expression that always evaluates to True. Examples: have a look at the following variants of an infinite while loop. You can also use a while condition that always evaluates to True. For … Read more