April 2026
Intermediate
399 pages
11h 38m
English
For this example, you’re supposed to develop a Python function to check the plausibility of IBANs. IBANs must comply with three rules:
The first two digits contain the country code (e.g., FR for France).
The total number of characters varies depending on the country (e.g., 22 characters in Germany).
In addition to the actual account number, the IBAN contains two check digits. A checksum can be calculated using a formula.
You can read the details in Wikipedia. Of course, there are also plenty of ready-made code samples for IBAN validation on the internet. But the purpose of the exercise is to develop suitable code yourself.
In this section, we’ve summarized prompts that can help you along the way. We’ve ...
Read now
Unlock full access