I create txt file with my name in 3 lines of strings :

```
adam1
adam2
adam3

```

and array

```
array = ['Tom','Monica','Jean']

```

I wanna to replace "adam1" with "Tom" from array and "adam2" with "Monica" etc .

```
import string
s = open("test.txt",'r')
array = ["Tom''Monica','Jean']

```

I start code but i dont know how create for loop to do this with replace() method. Can anybody help?