0
I need help that removing specified character from non-empty using index character. Test data: wresource
3 odpowiedzi
+ 5
See Princess Manalo
you can remove the nth index character from a Non-Empty string code...
Like for example -
def remove(string, n):
first = string[:n]
last = string[n+1:]
return first + last
string=raw_input("Enter the sring:")
n=int(input("Enter the index of the character to remove:"))
print("Modified string:")
print(remove(string, n))
It was a small example which might help you!✌️
+ 1
Thankyou☺
0
Need someone whose willing to help