python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
How do I pass a default parameter to a sub-function in a Pythonic way?
(EDITED FOR CLARITY)
I am trying to solve this issue with passing default parameters.
I have functions creating plots with matplotlib. These functions accept parameters and some of those have default ...
Ondřej Janča
Votes: 0
Answers: 2
How do I set a default parameter value in powershell?
I have the following function that converts a file to Base64.
How do I make it so this function accepts a default value for the file path if one is not entered?
B64 -f $filePath
function B64{
...

I am Jakoby
Votes: 0
Answers: 1
Default params in JavaScript
I want to create a function with default params, but I want to use one default param and then use a custom value for the following one. For instance,
function greet(name, greeting = 'Hey', question = ...

user13193460
Votes: 0
Answers: 2
Are there caveats of using mutable types as default parameters in functions in Python?
I have recently read about mutable default parameters in Python.
For some reason, I came up with an idea of using it like this:
data = [3, 4, 1, 8, 5, 9, 2, 6, 7]
def get_min(checked=[]):
global...
Oleksandr Novik
Votes: 0
Answers: 1