Ok so I have a function I’ve made called DrawGraph.
This one function is pretty much my whole program.
DrawGraph(x, y, xv, yv, s)
At the start of the program I would like to have to type in this functions. And input the specific numbers, x, y , xv, etc….
so I can enter different number every time I started the program.
What is the easiest way or even best way to do this? I cant expect it will be too hard.
What I’ve tried so far:
DrawGraph(x, y, xv, yv, s) = input()
DrawGraph(x, y, xv, yv, s) = input(x, y, xv, yv, s)
input(x, y, xv, yv, s)
……none of these worked…….
just want to throw in there. At the end of the program if I have no input but just
DrawGraph(5, 5, 10, 10, 60)
it works grand.
When I start using an input it really gets messed up
Unless you want to parse the values from one input, it would be easier to request each value and save it to a variable one at a time, and then calling your function.
This will get the values from the user and then call the function with those values.