PyCharm
 
2023.2
Get PyCharm

Extract constant

Last modified: 07 September 2023

The Extract Constant refactoring makes your source code easier to read and maintain. It also helps you avoid using hardcoded constants without any explanations about their values or purpose.