You can accomplish this using nearly any text editor you want by using the Find and Replace feature.
The normal keyboard shortcut (including python’s IDLE) for this is Ctrl+H
, though different editors have different shortcuts.
solved Change a variable name in all places in Python [closed]