This program is written in the Python programming language and it removes a specific character from a given string. It does this using a function named "remove_char" which takes two parameters: "str" and "n".
Finally, the program calls the "remove_char" function twice with different input parameters and prints the results to the console.
def remove_char(str, n): a = str[:n] b = str[n+1:] return a + b print(remove_char('Tutor Joes', 2)) print(remove_char('Tutor Joes', 7))
Tuor Joes Tutor Jes
Learn All in Tamil © Designed & Developed By Tutor Joes | Privacy Policy | Terms & Conditions