How can I trace the function in python 3?? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 4

How can I trace the function in python 3??

9th Dec 2017, 7:53 PM
Zarina
Zarina - avatar
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
9th Dec 2017, 8:02 PM
GAWEN STEASY
GAWEN STEASY - avatar
+ 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)
9th Dec 2017, 8:02 PM
Jonathan Álex
Jonathan Álex - avatar
+ 2
thank you😁😁😁😁😁😁😁
9th Dec 2017, 8:06 PM
Zarina
Zarina - avatar