Mar-26-2023, 03:45 AM
thanks for the reply
and i understand what you are showing
you are sending 10 to the function and printing
my question is - arnt i sending the heads_count, tails_count, x to count function and returning those variables, just not the value that I am expecting - at the very least I would think that the count variable should be 10, but it's not when printed in the main function
------------
ok so before posting i did some more script manipulations and searching to find that python runs top to bottom (which I didnt realize)
i thought the
was calling (old school programming GOTO) the count function and then returning to the main function with those variables and continuing
guess I have been out of programming far longer then I thought and need to do some more reading
thanks for the help
and i understand what you are showing
you are sending 10 to the function and printing
my question is - arnt i sending the heads_count, tails_count, x to count function and returning those variables, just not the value that I am expecting - at the very least I would think that the count variable should be 10, but it's not when printed in the main function
------------
ok so before posting i did some more script manipulations and searching to find that python runs top to bottom (which I didnt realize)
i thought the
count(heads_count, tails_count, x)
was calling (old school programming GOTO) the count function and then returning to the main function with those variables and continuing
guess I have been out of programming far longer then I thought and need to do some more reading
thanks for the help