We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1658a4b commit 6bb6ca5Copy full SHA for 6bb6ca5
chapter6/hello_debug.py
@@ -0,0 +1,7 @@
1
+def add(x,y):
2
+ print(f"The value of x: {x}")
3
+ print(f"The value of y: {y}")
4
+ return x+y
5
+
6
+result = add(3,7)
7
+print(result)
chapter6/hello_debug_object.py
@@ -0,0 +1,10 @@
+class Z: pass
+zz = Z()
8
9
+result = add(3,zz)
10
chapter6/hello_debug_object_pdb.py
@@ -0,0 +1,11 @@
+ import pdb;pdb.set_trace()
11
0 commit comments