Python Forum
Parenthesis in User-Defined Functions
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Parenthesis in User-Defined Functions
#2
The difference is that in the first case the function generator_type() is called for every index in the loop for i in ramge... while in the second case it is called only once.
Reply


Messages In This Thread
RE: Parenthesis in User-Defined Functions - by Gribouillis - Aug-07-2019, 12:40 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  User-defined function to reset variables? Mark17 3 1,701 May-25-2022, 07:22 PM
Last Post: Gribouillis
  Multiple user defined plots with secondary axes using for loop maltp 1 1,504 Apr-30-2022, 10:19 AM
Last Post: maltp
  Definitions in User-Created Functions and For Loops new_coder_231013 6 2,155 Dec-29-2021, 05:51 AM
Last Post: ndc85430
  Why built in functions are defined as class? quazirfan 5 2,888 Oct-23-2021, 01:20 PM
Last Post: Gribouillis
  Why does Python not use parenthesis to contain loops? davidorlow 3 3,524 Jun-09-2021, 06:33 AM
Last Post: Gribouillis
  Running scripts and location of saved interpreted user-defined classes and functions leodavinci1990 3 2,575 Aug-25-2020, 03:43 AM
Last Post: micseydel
  User functions don't work: Baldev10 7 3,209 Aug-18-2020, 08:34 PM
Last Post: deanhystad
  python library not defined in user defined function johnEmScott 2 3,919 May-30-2020, 04:14 AM
Last Post: DT2000
  Problem with user defined main menu function stefzeer 3 2,427 Mar-27-2020, 06:12 AM
Last Post: buran
  User defined functions inside other user defined functions WildP 1 1,972 Jan-29-2020, 04:57 PM
Last Post: Clunk_Head

Forum Jump:

User Panel Messages

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