+ 4
How can I trace the function in python 3??
3 ответов
+ 9
You can set use the trace function with sys.settrace(). In principle, you can it on every line of your code, but it also helps you to check the function calls. Look at this link for examples.http://www.dalkescientific.com/writings/diary/archive/2005/04/20/tracing_python_code.html
+ 3
def functionName(parameterName):
#codes
example:
def powerOfTwo(x):
result = x*x
return result
def sum(x, y);
result = x+y
print("result is " + result)
+ 2
thank you😁😁😁😁😁😁😁