10.47. How to generate a random colour (color) in Python
In this tutorial I look at how a hexadecimal colour code can be randomly generated. Thus generating a random colour that can be used in a Python tkinter GUI. In the process the random module and choice function is discussed. Showing how the choice function can randomly select the element of a Python list.