[program-l] Returned value not showing on output console -- python and visual studio

  • From: <rodalcidonis@xxxxxxxxx>
  • To: <program-l@xxxxxxxxxxxxx>
  • Date: Wed, 1 Apr 2020 18:17:53 -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: