I am translating a program from perl to python and I really don't know how to translate a scalar variable to python. My problem is that I want to call the first value that comes in based on all the scalar variables used in the code, a scalar variable when mentioned it refers to the value assigned to it.
the specific area was
my $min = $_[0];
my $max = $_[1];
So these two variables were assigned a value before hand, now what I am trying to do is call my min and let it be the first value that comes, then I want my max to be called as the second value that comes in. Basically, trying to gather the info that was generated to min and max and now bring it to here. Do not understand how to do this in python.
The thing is that I have 3-5 different values assigned to min and also to max, I dont know how to bring in the value.
i am the one who put the question, but I logged in as i think a temporary user and it got deleted. Thanks!
$_[0]and$_[1]are the (first two) elements of@_, which is the array variable that holds the arguments to a function. In Python you'd just declare the parameters.