name 'choice' is not defined
I have run the code as mentioned in lesson number 13: ' Creating the triangle in Matplotlib' under Python Programmer Bootcamp, but still getting error. Kindly help. I have attached the screenshot of the code

1 answers ( 0 marked as helpful)
You need to import random, and then put
random.choice(transformations).