You can download this code by clicking the button below.
This code is now available for download.
This function returns a randomly selected color.
Technology Stack : random
Code Type : Function
Code Difficulty :
import random
def random_color():
colors = ["red", "green", "blue", "yellow", "purple", "orange", "white", "black"]
return random.choice(colors)