def remove(string,index): str1=string[:index] str2=string[index+1:] str3=str1+str2 return str3 sentence=input("Enter any sentence: ") index=int(input("Enter the index value: ")) print(remove(sentence,index))
Input:
Enter any sentence: fcukthecode
Enter the index value: 0
Output:
cukthecode
Exec. on linux
![](https://www.fcukthecode.com/wp-content/uploads/2024/05/Screenshot-from-2024-05-25-19-20-37.png)
Morae!Q!
- Insert and Extend in list
- Interchange first and last number in list
- Print Odd Numbers in range
- Compare List in python
- Find whether the largest element in the array is at least twice as much as every other number in the array.
- Find minimum cost to reach the top of the floor
- Word Count in Python
- Lower case to upper case in python
- Display Time in python
- Sum of Odd And Even in Python
- Surface Area of Walls
- Find the sum of squares of individual digits
- Print the given series – 1 1 2 6 24
- Minimum number of steps required to reach destination.
- Seconds to Days Hours Minutes
- Program to remove add “Hyphen” character in the entered string
- Remove the nth Index Character from a Non-Empty String
- Relational operator Question
- Check whether all the given numbers lies in range of x and y.
- Find the Armstrong numbers between the given range.