top of page
Search

PYTHON CODING

  • Writer: waclaw_koscielniak
    waclaw_koscielniak
  • Jun 18, 2025
  • 1 min read

import inspect

def f(x, y=2):

return x + y

sig = inspect.signature(f)

print(sig.parameters['y'].default)


[Running] python3 -u "/Users/name/test/test26.py"

2

[Done] exited with code=0 in 0.069 seconds


Python Coding
Python Coding

 
 
 

Recent Posts

See All

1 Comment


Guest
Jun 18, 2025

Try to verify yourself.

Like
bottom of page