from turtle import fd, lt, rt, ht, st, fillcolor, begin_fill, end_fill def draw_star(length, colour): if colour == "Y": fillcolor('yellow') elif colour == "R": fillcolor('red') else: fillcolor('blue') begin_fill() for x in range(5): fd(length) lt(72) fd(length) rt (144) end_fill() length = int(input("How long should each side of the star be?" )) colour = input("What colour is your star? Enter Y for yellow, R for red or B for blue: ") st() draw_star(length, colour) ht()