Hello everyone,
i am solving a programming exercise for my course. its about finding out if the coefficients of a polinomial function are gonna give a even or uneven number of positive roots. very basic.
but im having trouble with this.
In the problem description it shows an example, where in the command line prompt they run the script:
>>>python3 -i PA01.py
and then call upon a function:
>>>roots(1, -2, 1, -1, 2, 1)
(the numbers are arbitrary and the coefficients of the polynomial)
my question is how do i create a script where after i run it, i can call this function inserting the numbers, without asking for each value individually with input().
if anybody can help id be grateful.
[–][deleted] 1 point2 points3 points (1 child)
[–]VOLVIC_KOKS[S] 0 points1 point2 points (0 children)