title: Write to File Issues - 'list' object is not callable (Python)
body: <p>The following script is only a 10% sample of a much larger calculator which part of an assignment.<br />
  The only real issue I have run into is when it comes to <code>'list' object is not callable</code> - everything else is actually working perfectly.<br />
  I have researched this and applied various examples and each one then opens a new issue and it doesn't end. So, I figured I would share it here to see where I am failing here.</p>
  <pre><code>&quot;&quot;&quot;
  Example of the string calculator issues (Lists)
  &quot;&quot;&quot;
  
  # Import datetime
  from datetime import datetime
  
  # Establish Timestamp Object
  ts = datetime.now()
  timestamp = ts.strftime(&quot;%d/%m/%Y %H:%M:%S&quot;)
  
  # File
  Ofile = open(&quot;testfile.txt&quot;, &quot;w&quot;)
  # Write to File Test - Timestamp
  Ofile.write(&quot;\n     Start Timestamp = &quot;+str(timestamp))
  
  # Simple Add Calculator
  num1 = float(input(&quot;\nPlease select your first number to Add: &quot;))
  num2 = float(input(&quot;\nPlease select your second number to Add: &quot;))
  add1 = float(num1+num2)
  print(f&quot;\nAdding, {num1} + {num2} =&quot;,add1)
  key = input(&quot;\nPress any key to continue.&quot;)
  Ofile.write(&quot;\n     Timestamp: &quot;+str(timestamp))
  Ofile.write(&quot;\n     The result of Adding &quot;+str(num1)+&quot; and &quot;+str(num2)+&quot; is: &quot;+str(add1))
  Ofile.close()
  Ofile = open(&quot;testfile.txt&quot;, &quot;r&quot;)
  print(Ofile.read())
  key = input(&quot;\nPress any key to continue.&quot;)
  
  Ofile = open(&quot;testfile.txt&quot;, &quot;a&quot;)
  
  # String Calculator
  print(&quot;/nPlease enter two numbers to calculate, each separated n\by a space or comma and then provide the arithmetic symbol ( + )&quot;)
  print('''
  
       Example:  
          45 45 +
          578,945,+
  ''')
  scalc = input(&quot;\nInput: &quot;)
  if scalc.find(&quot; &quot;) != -1:
      str = scalc.split(&quot; &quot;)
  elif scalc.find(&quot;,&quot;) != -1:
      str = scalc.split(&quot;,&quot;)
  else:
      print(&quot;\nThat was an invalid Entry. Please try again.&quot;)
  num3 = float(str[0]) 
  num4 = float(str[1]) 
  if str[2] == &quot;+&quot;: 
      add2 = float(num3+num4)
  print(f&quot;\nAdding, {num3} + {num4} =&quot;,add2)
  key = input(&quot;\nPress any key to continue.&quot;)
  # Issues with writing to file   
  Ofile.write(&quot;\n     Timestamp: &quot;+str(timestamp)) # Issue: ('list' object is not callable)
  Ofile.write(&quot;\n     The result of Adding &quot;+str(num3)+&quot; and &quot;+str(num4)+&quot; is: &quot;+str(add2)) # Issue: ('list' object is not callable)
  Ofile.close()
  Ofile = open(&quot;testfile.txt&quot;, &quot;r&quot;)
  print(Ofile.read())
  key = input(&quot;\nPress any key to continue.&quot;)
  </code></pre>