[pythonvis] Return value not showing on Console -- Python and visual Studio - help please

  • From: <rodalcidonis@xxxxxxxxx>
  • To: "pythonvis" <pythonvis@xxxxxxxxxxxxx>
  • Date: Wed, 1 Apr 2020 18:14:48 -0400

Colleagues:

This is driving me crazy. When I perform the same steps using the Python 
Command Line, I get a returned value as expected. however, the same code placed 
in visual Studio, I am not getting any output other than the message Press any 
keys to continue. Please help!

Here is my sample code --  I imported the Py-Docx module.

import docx

def formatDoc():
    doc = docx.Document("test.docx")
    print(len(doc.paragraphs))
    print("testing output")


I am expecting an integer returning the number of paragraphs in the doc object.


Rod Alcidonis, Esq.

Other related posts:

  • » [pythonvis] Return value not showing on Console -- Python and visual Studio - help please - rodalcidonis