title: Why is EAFP considered pythonic?
body: <p>Considering below example,</p>
  
  <pre><code>myList = [1, 2, 3, 4, 5, 6]
  </code></pre>
  
  <p>To print last index,</p>
  
  <pre><code># Non - pythonic
  if len(myList) &gt;= 6:
     print(myList[5])
  else:
     print('Index does not exist')
  
  # Pythonic
  try:
     print(myList[5])
  except:
     print('Index does not exist')
  </code></pre>
  
  <p>What is the idea behind the preference to ask for forgiveness over taking permission?</p>