title: Getting error while running a below program in python
body: <p>Getting error while running a below program in python</p>
  
  <pre><code>data = read_data()
  batsman_name = first_batsman(data)
  def first_batsman(data=data):
      innings = data['innings'][0]
  first_innings = innings['1st innings']
  deliveries = first_innings['deliveries']
  first_ball =(deliveries[0] [0.1])
  first_batsman = first_ball['batsman']
      return(first_batsman)
  print(first_batsman)
  </code></pre>
  
  <p>getting error as : </p>
  
  <blockquote>
    <p>return(first_batsman)<br>
    ^<br>
    IndentationError: unexpected indent</p>
  </blockquote>
  
  <p>I even tried below program :</p>
  
  <pre><code>data = read_data()
  batsman_name = first_batsman(data)
  def first_batsman(data=data):
      innings = data['innings'][0]
  first_innings = innings['1st innings']
  deliveries = first_innings['deliveries']
  first_ball =(deliveries[0] [0.1])
  first_batsman = first_ball['batsman']
  return(first_batsman)
  print(first_batsman)
  </code></pre>
  
  <p>But still getting error as :</p>
  
  <blockquote>
    <p>return(first_batsman)<br>
    SyntaxError: 'return' outside function</p>
  </blockquote>
  
  <p>What is the solution for this?</p>