title: Why do I keep getting arbitrary syntax errors in Python?
body: <p>I am writing a simple script in python to return a GDP value. Starting on line 6, it gives a "Syntax Error" with no further elaboration. I commented out all of the lines with this issue (line 6-end) and on line 16, I got an "EOF while parsing" error. I'm really not sure what to do because I checked for mismatched delimiters, incorrect syntax, etc., but the only thing I could find was the way I did my print statements, but since they are both the same, and only one got a parsing error that is unlikely to be the case. Here is the code: </p>
  
  <pre><code>y_i = int(input("What year did your alt history begin?"))
  y_f = 2014
  p_i = int(input("Enter population of your territory starting from your alt history.")
  p_g = int(input("Enter average population growth from year to year in a numerical value. No percentages.")
  p_f = (p_i(p_g - y_f) ** 2)/(10000 * y_i ** 2)
  
  print("This is your nation's population.", p_f, "If you got an error, check that you put in all inputs correctly.")
  
  gdp_capita = int(input("What is your GDP per capita? Please use the number only, in your own currency.")
  
  
  gdp = pop * gdp_capita
  
  print("This is your nation's GDP.", gdp, "If you get an error, please check that you entered everything in correctly.")
  </code></pre>