[Tutor] FTP Upload

Alan Gauld alan.gauld at btinternet.com
Thu Jul 16 09:30:24 EDT 2020


On 16/07/2020 14:16, John Weller wrote:

>> def callback(black):
>>     global count
>>     count += 1
>>     print("Block %d sent with size %d" % (count, len(block))

> I included the callback procedure in a test program 
> I was running and it caused syntax 

Count the parens in the print line.
I was one short. oops...


-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos



More information about the Tutor mailing list