title: List not callabe inside a menu
body: <p>I am new to python and I don't know why I am getting this error message, but this is the code I am working on:</p>
  <pre><code>txt_historico = &quot;historico.txt&quot;
  HistoricoVendas = []
  if exists(txt_historico):
      with open(txt_historico, &quot;r&quot;) as arquivo_historico:
        HistoricoVendas = []
  
  def imprimeHistorico()
    print()
    if len[HistoricoVendas] &gt; 0:
      print(HistoricoVendas)
    else: 
        print(&quot;Não há histórico de vendas por enquanto&quot;)
  
  elif ans==&quot;6&quot;:
    HistoricoVendas()
  </code></pre>
  <p>I only put the parts where this specific mistake happens, but if it helps I can post the whole code no problem.</p>
  <p>Is the error in the way I am naming that HistoricoVendas ?</p>