computer generated art angle to use when changing the direction in which the line is drawn as the drawing happens within loop even this simple change to the angle used to draw the lines can generate very different pictures lets play with some colours import turtle from random import randint def get_input_angle()""obtain input from user and convert to an int""message 'please provide an angle:value_as_string input(messagewhile not value_as_string isnumeric()print('the input must be an integer!'value_as_string input(messagereturn int(value_as_stringdef generate_random_colour()"""generates an , , values randomly in range to "" randint( randint( randint( return rgb print('set up screen'turtle title('colourful pattern'turtle setup( turtle hideturtle(turtle bgcolor('black'set the background colour of the screen turtle colormode( indicates rgb numbers will be in the range to turtle speed( angle get_input_angle(print('start the drawing'for in range( )turtle color(generate_random_colour()turtle forward(iturtle right(angleprint('done'turtle done(