'Python Code formatting Error and PEP violation with Pycharm

I am using Pycharm for python web development and using python formatted pycharm automatically adds the space between every literal as shown in the figure below. Which violates the PEP code formatting.

Is there any way to fix this?

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source