From 2443f909263568516e16f5ffb4b6786c53b96908 Mon Sep 17 00:00:00 2001 From: medic17 <36856762+medic17@users.noreply.github.com> Date: Wed, 6 Apr 2022 00:32:21 +0300 Subject: [PATCH] MAINT: Convert print statement to function (#504) --- Sample_Code/basic_features.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sample_Code/basic_features.py b/Sample_Code/basic_features.py index 5e874970d..60c6a77d0 100644 --- a/Sample_Code/basic_features.py +++ b/Sample_Code/basic_features.py @@ -4,7 +4,7 @@ input1 = PdfFileReader(open("document1.pdf", "rb")) # print how many pages input1 has: -print "document1.pdf has %d pages." % input1.getNumPages() +print ("document1.pdf has %d pages." % input1.getNumPages()) # add page 1 from input1 to output document, unchanged output.addPage(input1.getPage(0))