title: Unexpected EOF while parsing
body: <p>Objectives: I need to read cost and discount rate and number of year and calculate the time adjusted cost and time adjusted benefits and cumulative for both.</p>
  
  <p>I receive this error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "D:\python\codetest\hw.py", line 3, in &lt;module&gt;
      cost = eval(input("Enter Development cost :"))
    File "&lt;string&gt;", line 0
  
      ^
  SyntaxError: unexpected EOF while parsing
  </code></pre>
  
  <p>When I remove <code>eval</code> the code works fine.</p>
  
  <pre><code> #import numpy as np
  
  cost = eval(input("Enter Development cost :"))
  discrate = eval(input("Enter discount rate :"))
  
  #operation cost list
  opcost = []
  #benifits list
  benifits = []
  #dicount rate list
  
  
  #dicount rate list
  discount=[]
  #time adjusted cost
  TAC = []
  #time adjusted benifits
  TAB = []
  
  CTAC=[]
  
  year = eval(input("Enter number of year "))
  
  for i in range (year):
      opcost.append(eval(input("Enter operation cost :")))
  
  for i in range (year):
      benifits.append(eval(input("Enter benifit for this year :")))
  
  
  
  for i in range (year):
      pvn = (1/pow(1+discrate,i))
      # print (pvn)
      discount.append(pvn)
  
  for i in range (year):
      TAC.append(discount[i] * opcost[i])
  
  #print(TAC[i])
  
  for i in range(year):
      TAB.append(discount[i] * benifits[i]))
  
  
  #CTAC = np.cumsum(TAC)
  
  #for i in range (year):
  #    print(CTAC[i])
  </code></pre>