Append new string in the middle of a given string using python programming
All Answers
total answers (1)
Severity: 8192
Message: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
Filename: libraries/Filtered_db.php
Line Number: 23
total answers (1)
Hint:
len(s1)
to get the string length.Solution:
s1
by dividing s1’s length by 2s1
starting from 0 to the middle index number and store it inx
x
ands2
.x = x + s2
x
and remeaning character froms1
x