Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
nested function return
#1
in which cases is it need to add () to inner functions return and why is it different in the following 2 examples
[Image: 0m41mjL]
[Image: F3C2VM9]
buran write Oct-02-2023, 06:33 AM:
Please, don't post images of code, error, data, etc. Post as text in proper BBcode tags.
Larz60+ likes this post

Attached Files

Thumbnail(s)
       
Reply


Messages In This Thread
nested function return - by MHGhonaim - Oct-01-2023, 11:31 PM
RE: nested function return - by menator01 - Oct-01-2023, 11:56 PM
RE: nested function return - by deanhystad - Oct-02-2023, 09:21 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  return next item each time a function is executed User3000 19 6,121 Aug-06-2023, 02:29 PM
Last Post: deanhystad
  function return boolean based on GPIO pin reading caslor 2 2,215 Feb-04-2023, 12:30 PM
Last Post: caslor
  return vs. print in nested function example Mark17 4 2,904 Jan-04-2022, 06:02 PM
Last Post: jefsummers
  Exit function from nested function based on user input Turtle 5 4,785 Oct-10-2021, 12:55 AM
Last Post: Turtle
  How to invoke a function with return statement in list comprehension? maiya 4 4,262 Jul-17-2021, 04:30 PM
Last Post: maiya
  Function - Return multiple values tester_V 10 6,915 Jun-02-2021, 05:34 AM
Last Post: tester_V
Question Stopping a parent function from a nested function? wallgraffiti 1 4,788 May-02-2021, 12:21 PM
Last Post: Gribouillis
  Get return value from a threaded function Reverend_Jim 3 24,870 Mar-12-2021, 03:44 AM
Last Post: Reverend_Jim
  Return not exiting function?? rudihammad 3 7,683 Dec-01-2020, 07:11 PM
Last Post: bowlofred
  Why does my function return None? vg100h 3 3,390 Oct-29-2020, 06:17 AM
Last Post: vg100h

Forum Jump:

User Panel Messages

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