I have the following code:
print(img.size) print(10 * img.size)
This will print:
(70, 70) (70, 70, 70, 70, 70, 70, 70, 70,
The pythonic way would be using a list comprehension:
y = tuple([z * 10 for z in img.size])
Another way could be:
y = tuple(map((10).__mul__, img.size))