I would like to use a switch statement in Python, but since there is not a switch statement in python, I would like to use a list of functions. However, when I define the list, the functions are executed.
Here is my code:
shapes = [drawSquare(), drawRectangle(), myTurtle.circle(10), drawTriangle(), drawStar()]
Here is the output using turtle:
How do I define the list of functions without python running the functions?