Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
def
mutate_string(string, position, character):
2
return
string[:position]+character + string[(position+1):]
3
4
if
__name__ ==
'__main__'
:
5
s = input()
Callers
1
Mutations.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected