Loop colours from variables for graphics.py [Python 3.2]
- by user1056548
I am creating a graphics program that draws 100 x 100 squares next to each other depending on the user-specified grid size. The user also inputs 4 colours for the squares to be coloured (e.g. if they enter red,green,blue,yellow the squares will be coloured in that order, repeating the colours).
Is it possible to loop the colours from the…