Python Forum
havent programmed in years - confused by why RETURN is not returning
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
havent programmed in years - confused by why RETURN is not returning
#5
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
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
Reply


Messages In This Thread
RE: havent programmed in years - confused by why RETURN is not returning - by stmoose - Mar-26-2023, 03:45 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  String int confused janeik 7 1,175 Aug-02-2023, 01:26 AM
Last Post: deanhystad
  I am confused with the key and value thing james1019 3 1,018 Feb-22-2023, 10:43 PM
Last Post: deanhystad
  Pandas confused DPaul 6 2,659 Sep-19-2021, 06:45 AM
Last Post: DPaul
  is and '==' i'm confused hshivaraj 6 2,795 Sep-15-2021, 09:45 AM
Last Post: snippsat
  Confused with 'flags' tester_V 10 5,039 Apr-12-2021, 03:03 AM
Last Post: tester_V
  Simple Tic Tac Toe but I'm confused Izith 1 2,268 Sep-26-2020, 04:42 PM
Last Post: Larz60+
  I am really confused with this error. Runar 3 3,088 Sep-14-2020, 09:27 AM
Last Post: buran
  Confused on how to go about writing this or doing this... pythonforumuser 3 2,547 Feb-10-2020, 09:15 AM
Last Post: snippsat
  'Age' categorical (years -months -days ) to numeric Smiling29 4 2,992 Oct-17-2019, 05:26 PM
Last Post: Smiling29
  Create a monthly mean column in multiple years fyec 1 4,069 Jun-21-2018, 03:57 AM
Last Post: scidam

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020