Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (50.2k points)

I am having the below python script where I need to execute the gdal_retile.py file, but I got an exception on this line:

if Verbose:

   print("Building internam Index for %d tile(s) ..." % len(inputTiles), end=' ')

The end=' ' is invalid syntax. 

I am interested as to why, and what the author apparently meant to do.

1 Answer

0 votes
by (108k points)

For achieving your desired output, you can use the below query in python 2.6.0a2 and later:

from __future__ import print_function

This will help you to use the Python 3.0 style print method without having to hand-edit all events of print.

Related questions

Browse Categories

...