I need help that removing specified character from non-empty using index character. Test data: wresource | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I need help that removing specified character from non-empty using index character. Test data: wresource

4th Dec 2020, 4:55 AM
Princess Manalo
3 Answers
+ 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!✌️
4th Dec 2020, 6:17 AM
Piyush
Piyush - avatar
+ 1
Thankyou☺
5th Dec 2020, 2:40 AM
Princess Manalo
0
Need someone whose willing to help
4th Dec 2020, 4:56 AM
Princess Manalo