Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9fce30f

Browse files
Answer
1 parent 746a3cf commit 9fce30f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎String's/Mutations.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ def mutate_string(string, position, character):
33
st[position] = character
44
return("".join(st))
55

6-
76
if __name__ == '__main__':
87
s = input()
98
i, c = input().split()
109
s_new = mutate_string(s, int(i), c)
11-
print(s_new)
10+
print(s_new)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /