Cant connect to IRC with python?

hey thank you for your answer! I found the problem on myself.

The actual problem was the Python Version.

You need Python 3.9 for this