Replacing a character in a string in Python is best done by using the string replace method. The string replace method necessitates that you pass in two strings, the string or character you want to replace, and the string or character you want it to be replaced with.
Subscribe If You Enjoyed :)
#python #pythontutorial #shorts