Mar-28-2019, 09:18 PM
This is because
remove the print and it will no longer print None.
for i in shapes: print(i.draw())the print here is printing the result of the method draw and as there is no return value it defaults to None
remove the print and it will no longer print None.
for i in shapes: i.draw()