Open Prince997025 opened 5 days ago
import random
def colour_prediction_game(): colours = ['red', 'green'] chosen_colour = random.choice(colours) return chosen_colour
result = colour_prediction_game() print("The predicted colour is:", result)
import random
def colour_prediction_game(): colours = ['red', 'green'] chosen_colour = random.choice(colours) return chosen_colour
result = colour_prediction_game() print("The predicted colour is:", result)