Skip to content

Commit

Permalink
Create Mutations
Browse files Browse the repository at this point in the history
  • Loading branch information
Shrishti-Saraswat authored Jun 20, 2020
1 parent 8526105 commit ea59fd5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Mutations
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
def mutate_string(string, position, character):
s=string[:position]+character+string[position+1:]
return s
if __name__ == '__main__':
s = raw_input()
i, c = raw_input().split()
s_new = mutate_string(s, int(i), c)

0 comments on commit ea59fd5

Please sign in to comment.