> For the complete documentation index, see [llms.txt](https://tvn.gitbook.io/test-automation-with-python/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tvn.gitbook.io/test-automation-with-python/python-for-test-automation/list.md).

# List

````python
```python
names = [
    'Bobby C.Brown',
    'Chris Steven',
    'Jacob G, Smith',
    'John Paul Davis'
]

last = [n.split(' ')[-1] for n in names]
print(last)

#fString
name = 'Bob'
age = 34
s = f'{name} is {age} years old.'
print(s)


# unpacking
inputs = [
    'John',
    'Smith',
    'United States',
    'Blue',
    'Brown',
    29
]
first, last, *_,age = inputs

print(f'{first} {last} is {age} years old.')


```
````
