title: Unable to call function. (Not an error)
body: <pre><code>#!/usr/bin/python
  # -*- coding: u8 -*-
  import csv
  
  def csvreader():
      f = open('tb.csv', "rU")
      reader = csv.reader(f)
      rownum = 0
      for row in reader:
          if rownum == 0:
              header = row
          else:
              colnum = 0
                  for col in row:
                  print '%-9s : %s' % (header[colnum], col) 
                  colnum += 1
          print""
          rownum += 1
      f.close()
  
  print "Welcome to the Libary of Alexandria"
  print ""
  print "Please select an option by entering the corresponding number from the         following:"
  print ""
  print "① : Search Database"
  print "② : Add Data"
  print "⚕ : Πληροφορίες συστήματος"
  print ""
  selection = (raw_input("Please enter a number:\n"))
  while True:
      try:
          selection = int(selection)
          break
      except ValueError:
          selection = (raw_input('\033[31mERROR: Please enter a single digit corresponding to a selection.\033[0m\n'))
  if selection == '1':
      search = csvreader()
      print search
  </code></pre>
  
  <p>Hi,
  The function csvreader works fine on its own, however when i attempt to call it by putting the funtion by itself, or doing assigning it to a variable and printing it, it prints nothing. The screen outputs</p>
  
  <pre><code>Welcome to the Libary of Alexandria
  
  Please select an option by entering the corresponding number from the following:
  
  ① : Search Database
  ② : Add Data
  ⚕ : Πληροφορίες συστήματος
  
  Please enter a number:
  1
  </code></pre>
  
  <p>And then nothing.</p>
  
  <p>Im using netbeans on python 2.7.5.</p>
  
  <p>Any help with this or the rest of my code would be appreciated.</p>