MCPcopy Create free account
hub / github.com/Avisikta-Majumdar/HackerRank_Python_Solutions / mutate_string

Function mutate_string

Mutations.py:1–2  ·  view source on GitHub ↗
(string, position, character)

Source from the content-addressed store, hash-verified

1def mutate_string(string, position, character):
2 return string[:position]+character + string[(position+1):]
3
4if __name__ == '__main__':
5 s = input()

Callers 1

Mutations.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected