Just turn on turbo mode, and run the project to watch it create a 9th degree polynomial to fit the 10 points! If you hold down your mouse within the first second of clicking the green flag, you can place your own points; if you hold down the up arrow (↑), you can enter the coordinates of your own points (using scratch coordinates). You can obviously also change the number of points generated, using the slider and the graphing resolution and graphing window inside the project right under the “When Green Flag Clicked” block.
I was watching a video about Reed-Solomon codes, and I was motivated to create this project to generalize to any degree! Video link: https://m.youtube.com/watch?v=1pQJkt7-R4Q