It means to extract the first item in the list/tuple return by the function.
In [1]: "this is a long sentence".split()
Out[1]: ['this', 'is', 'a', 'long', 'sentence']
In [2]: "this is a long sentence".split()[0]
Out[2]: 'this'
More Related Contents:
- Convert Json File to data Frame
- How are lambdas useful? [closed]
- How to parse data in JSON format?
- How do I organize my tkinter appllication?
- Matplotlib discrete colorbar
- Purpose of “%matplotlib inline”
- ImportError: numpy.core.multiarray failed to import
- Why is Bubble Sort implementation looping forever?
- How do I check the versions of Python modules?
- How do I count the NaN values in a column in pandas DataFrame?
- Scraping ajax pages using python
- Rounding to two decimal places in Python 2.7?
- Is there a better way to compare dictionary values
- Python: ‘break’ outside loop
- python Pandas DataFrame copy(deep=False) vs copy(deep=True) vs ‘=’
- Removing then Inserting a New Middle Layer in a Keras Model
- accepting multiple user inputs separated by a space in python and append them to a list
- Why is “None” printed after my function’s output?
- Pandas dataframe read_csv on bad data
- Using datetime as ticks in Matplotlib
- Python – Infinite while loop, break on user input
- Looping through a JSON array in Python
- What happens behind the scenes when python adds small ints? [duplicate]
- Concatenate elements of a tuple in a list in python [duplicate]
- PyCrypto problem using AES+CTR
- Count duplicates between 2 lists
- Printing Unicode in eclipse Pydev console and in Idle
- ModX in event.state in tkinter?
- Python: Inheritance versus Composition
- How to add a Python import path using a .pth file