diff --git a/faker/providers/bank/pl_PL/__init__.py b/faker/providers/bank/pl_PL/__init__.py
index 9d9b8f64..9cf6624d 100644
--- a/faker/providers/bank/pl_PL/__init__.py
+++ b/faker/providers/bank/pl_PL/__init__.py
@@ -4,5 +4,5 @@ from .. import Provider as BankProvider
 class Provider(BankProvider):
     """Implement bank provider for ``pl_PL`` locale."""
 
-    bban_format = "#" * 26
+    bban_format = "#" * 24
     country_code = "PL"

diff --git a/tests/providers/test_bank.py b/tests/providers/test_bank.py
index b71666d8..76d05ee0 100644
--- a/tests/providers/test_bank.py
+++ b/tests/providers/test_bank.py
@@ -73,14 +73,14 @@ class TestPlPl:
 
     def test_bban(self, faker, num_samples):
         for _ in range(num_samples):
-            assert re.fullmatch(r"\d{26}", faker.bban())
+            assert re.fullmatch(r"\d{24}", faker.bban())
 
     def test_iban(self, faker, num_samples):
         for _ in range(num_samples):
             iban = faker.iban()
             assert is_valid_iban(iban)
             assert iban[:2] == PlPlBankProvider.country_code
-            assert re.fullmatch(r"\d{2}\d{26}", iban[2:])
+            assert re.fullmatch(r"\d{2}\d{24}", iban[2:])
 
 
 class TestEnGb:

too long iban generated for pl-PL locale
* Faker version: 9.8.2
* OS: MacOs 12.0.1

IBANs generated for pl_PL locales are 30 characters long. This is too many. Valid PL IBAN should have 28 characters (including country code).

### Steps to reproduce
Generate a Polish IBAN with:
```
from faker import Faker
  fake=Faker('pl-PL')
  print(fake.iban())
```
Copy paste generated string into IBAN Validator at https://www.ibancalculator.com/
### Expected behavior

IBAN should have the correct length and checksum

### Actual behavior

There is an error message that IBAN have too many characters:
"This IBAN cannot be correct because of its length. A Polish IBAN always contains exactly 28 digits and letters ("PL", a 2-digit checksum, and the 24-digit national account number, whose first 8 digits determine the bank and branch). The IBAN you entered is 30 characters long."

tests/providers/test_bank.py::TestPlPl::test_bban tests/providers/test_bank.py::TestPlPl::test_iban
tests/providers/test_bank.py::TestNoNo::test_aba tests/providers/test_bank.py::TestNoNo::test_bban tests/providers/test_bank.py::TestNoNo::test_iban tests/providers/test_bank.py::TestFiFi::test_bban tests/providers/test_bank.py::TestFiFi::test_iban tests/providers/test_bank.py::TestEnGb::test_bban tests/providers/test_bank.py::TestEnGb::test_iban tests/providers/test_bank.py::TestEnIe::test_bban tests/providers/test_bank.py::TestEnIe::test_iban tests/providers/test_bank.py::TestRuRu::test_bic tests/providers/test_bank.py::TestRuRu::test_correspondent_account tests/providers/test_bank.py::TestRuRu::test_checking_account tests/providers/test_bank.py::TestRuRu::test_bank tests/providers/test_bank.py::TestPtPt::test_bban tests/providers/test_bank.py::TestPtPt::test_iban tests/providers/test_bank.py::TestEsEs::test_bban tests/providers/test_bank.py::TestEsEs::test_iban tests/providers/test_bank.py::TestFrFr::test_bban tests/providers/test_bank.py::TestFrFr::test_iban tests/providers/test_bank.py::TestEnPh::test_swift tests/providers/test_bank.py::TestEnPh::test_swift_invalid_length tests/providers/test_bank.py::TestEnPh::test_swift8_use_dataset tests/providers/test_bank.py::TestEnPh::test_swift11_use_dataset tests/providers/test_bank.py::TestEnPh::test_swift11_is_primary tests/providers/test_bank.py::TestFilPh::test_swift tests/providers/test_bank.py::TestFilPh::test_swift_invalid_length tests/providers/test_bank.py::TestFilPh::test_swift8_use_dataset tests/providers/test_bank.py::TestFilPh::test_swift11_use_dataset tests/providers/test_bank.py::TestFilPh::test_swift11_is_primary tests/providers/test_bank.py::TestTlPh::test_swift tests/providers/test_bank.py::TestTlPh::test_swift_invalid_length tests/providers/test_bank.py::TestTlPh::test_swift8_use_dataset tests/providers/test_bank.py::TestTlPh::test_swift11_use_dataset tests/providers/test_bank.py::TestTlPh::test_swift11_is_primary tests/providers/test_bank.py::TestTrTr::test_bban tests/providers/test_bank.py::TestTrTr::test_iban tests/providers/test_bank.py::TestDeCh::test_bban tests/providers/test_bank.py::TestDeCh::test_iban tests/providers/test_bank.py::TestFrCh::test_bban tests/providers/test_bank.py::TestFrCh::test_iban tests/providers/test_bank.py::TestItCh::test_bban tests/providers/test_bank.py::TestItCh::test_iban tests/providers/test_bank.py::TestThTh::test_bban tests/providers/test_bank.py::TestThTh::test_iban tests/providers/test_bank.py::TestElGr::test_bban tests/providers/test_bank.py::TestElGr::test_iban