Question: Given this variable with a string type:

`var = "Apples"`

How can I delete the letter "p" only once? So that the result looks like this:

`var = "Aples"`

Answer: 
You can use the [`.replace()`](https://docs.python.org/3.3/library/stdtypes.html#str.replace) built in method for that:

```
a="Apples"
print(a.replace("p","",1))

```
You can use the `.replace()` built in method for that:

```
var="Apples"
print(var.replace('p','',1))

```