Trying to repeat a loop step until my function returns True for that name, in Python. The following code is what I have so far.

```
import random

names = [
    "John",
    "Mike",
    "Jimmy",
    "Curt",
    "Ted",
    "Bob",
    "Dean"
]

def randomAnswer():
    return bool(random.getrandbits(1))

for name in names:
    print("Name {} returned {}".format(name, randomAnswer()))

```

The script above returns an output similar to this one.

```
Name John returned True
Name Mike returned True
Name Jimmy returned False
Name Curt returned True
Name Ted returned False
Name Bob returned False
Name Dean returned False

```

The desired output is something like this.

```
Name John returned True
Name Mike returned True
Name Jimmy returned False
Name Jimmy returned False
Name Jimmy returned False
Name Jimmy returned True
Name Curt returned True
Name Ted returned False
Name Ted returned True
Name Bob returned False
Name Bob returned True
Name Dean returned False
Name Dean returned False
Name Dean returned True

```