title: Python help: 'str' object is not callable
body: <p>I am learning Python, getting this error in my code. Searched online, but didn't find an answer I understand. Can someone help? </p>
  
  <p>TypeError: 'str' object is not callable</p>
  
  <p>Here is my code:</p>
  
  <pre><code>while True:
      print("Enter 'add' to add two numbers")
      print("Enter 'quit' to quit the program")
      user_input = input(": ")
  
      if user_input == "quit":
          break
      elif user_input == "add":
          num1 = float(input("Enter 1st number: "))
          num2 = float(input("Enter 2nd number: "))
          result = str(num1 + num2)
          print("Answer is: " + result)
  </code></pre>