Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
python default parameters depend on other paramters
jasbir singh
Programming language:
Python
2021-06-05 21:13:01
0
Q:
python default parameters depend on other paramters
Mr.EU
Code:
Python
2021-06-28 18:58:15
def func(n=5.0, delta=None): # other ways are not supported if delta is None: delta = n/10
0
Tags
python
Related
default values python
python decorator with arguments
keyerror in python defaultdict
defaultdict in python
defaultdict python
can you rerun a function in the same function python
python defaultdict to dict
python default arguments
python defaultdict example
python defaultdict default value
python defaultdict
python default input
python optional parameters
how to set a default parameter in python
python function parameters default value
set default python
python dictionary get default
New to Communities?
Join the community