SyntaxFix
Write A Post
Hire A Developer
Questions
If you are replacing by an index value specified in variable 'n', then try the below:
def missing_char(str, n): str=str.replace(str[n],":") return str