Python Forum
what would you call the input for the parameter(s) of a function you have defined?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
what would you call the input for the parameter(s) of a function you have defined?
#1
What would you call what you would put into the parameters section when calling a function which you have defined?
eg:
def example(parameter):
    pass
If I were to type in ' example(123) ' then what would the '123' be? Would it still be the "parameter" or would it be the "input for/as the parameter", or what would it be?
Reply
#2
I'm pretty sure the answer is "arguments".
Reply
#3
There isn't a universal standard for this. Some would call both 'parameter' and '123' parameters. Some would call 'parameter' the parameter, while '123' is the argument. If you wanted to go hardcore technical you might call 'parameter' the formal parameter and '123' the actual parameter.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply
#4
Thank you ichabod801. Perhaps I'll go with "argument" as it seems appropriate to me.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  function as parameter Azdaghost 2 513 Apr-01-2025, 07:10 PM
Last Post: DeaD_EyE
  not able to call the variable inside the if/elif function mareeswaran 3 489 Feb-09-2025, 04:27 PM
Last Post: mareeswaran
  Input function oldschool 1 666 Sep-14-2024, 01:02 PM
Last Post: deanhystad
  difference between forms of input a list to function akbarza 6 2,286 Feb-21-2024, 08:02 PM
Last Post: bterwijn
  Variable is not defined error when trying to use my custom function code fnafgamer239 4 1,494 Nov-23-2023, 02:53 PM
Last Post: rob101
  Printing the variable from defined function jws 7 6,860 Sep-03-2023, 03:22 PM
Last Post: deanhystad
  determine parameter type in definition function akbarza 1 1,195 Aug-24-2023, 01:46 PM
Last Post: deanhystad
  Function parameter not writing to variable Karp 5 2,051 Aug-07-2023, 05:58 PM
Last Post: Karp
  How do I call sys.argv list inside a function, from the CLI? billykid999 3 1,824 May-02-2023, 08:40 AM
Last Post: Gribouillis
  [ERROR] ParamValidationError: Parameter validation failed: Invalid type for parameter gdbengo 3 17,261 Dec-26-2022, 08:48 AM
Last Post: ibreeden

Forum Jump:

User Panel Messages

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