You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print("The whole array has {} rows".format(len(array)))
```
References and further reading:
-[glob](https://docs.python.org/2/library/glob.html?highlight=glob#glob.glob) selects files by unix patterns. Asterisks are patterns for zero or more characters, question marks and square brackets also have special meanings.
-[sorted](https://docs.python.org/2/library/functions.html#sorted) is a builtin function. You do not need to import it: it's always available.
-[fileinput](https://docs.python.org/2/library/fileinput.html?highlight=fileinput#module-fileinput) concatenates multiple files together into a single iterator
-[numpy.loadtxt](https://docs.scipy.org/doc/numpy/reference/generated/numpy.loadtxt.html) It's always worth checking the documentation to see whether something is already built in.
## Some other approaches
```python
"""
You have to know the number of files for this approach.
This may be more comfortable for those more familiar with C.