no python output using print
Question: Hi am new to python and just trying to read a simple csv file and output to
the terminal using:

    
    
    import csv
    with open('cancerdata.csv', 'rb') as csvfile:
         data = csv.reader(csvfile, delimiter=' ')
         for row in data:
             print row
    

However when I run:

    
    
    python program.py
    

I get no output, yet no errors.

What simple noob error have I made?


Answer: As stated in the comments it's _very likely_ that your `cancerdata.csv` file
is **empty**. See:

    
    
    $ touch cancerdata.csv
    $ python myprogram.py
    

_No output_.

    
    
    $ echo "1,2,3\n" > cancerdata.csv
    $ echo "3,4,5\n" > cancerdata.csv
    $ python myprogram.py
    ['3,4,5\\n']
    

**We have output!**

