this is my answer for runing the PDB in PowerShell.
This commit is contained in:
@@ -0,0 +1,34 @@
|
|||||||
|
PS C:\Users\Maxzh\python-bootcamp\max submission> python .\6_9_HW.py
|
||||||
|
> c:\users\maxzh\python-bootcamp\max submission\6_9_hw.py(89)main()
|
||||||
|
-> product_result = multiply_numbers(sum_result, number2)
|
||||||
|
(Pdb) next
|
||||||
|
> c:\users\maxzh\python-bootcamp\max submission\6_9_hw.py(90)main()
|
||||||
|
-> print("Product:", product_result)
|
||||||
|
(Pdb) c
|
||||||
|
Product: 150
|
||||||
|
> c:\users\maxzh\python-bootcamp\max submission\6_9_hw.py(108)main()
|
||||||
|
-> square_result = calculate_square(number)
|
||||||
|
(Pdb) next
|
||||||
|
> c:\users\maxzh\python-bootcamp\max submission\6_9_hw.py(109)main()
|
||||||
|
-> cube_result = calculate_cube(number)
|
||||||
|
(Pdb) c
|
||||||
|
Square: 25
|
||||||
|
Cube: 125
|
||||||
|
PS C:\Users\Maxzh\python-bootcamp\max submission> python .\6_9_HW.py
|
||||||
|
> c:\users\maxzh\python-bootcamp\max submission\6_9_hw.py(89)main()
|
||||||
|
-> product_result = multiply_numbers(sum_result, number2)
|
||||||
|
(Pdb) step
|
||||||
|
--Call--
|
||||||
|
> c:\users\maxzh\python-bootcamp\max submission\6_9_hw.py(80)multiply_numbers()
|
||||||
|
-> def multiply_numbers(x, y):
|
||||||
|
(Pdb) c
|
||||||
|
Product: 150
|
||||||
|
> c:\users\maxzh\python-bootcamp\max submission\6_9_hw.py(108)main()
|
||||||
|
-> square_result = calculate_square(number)
|
||||||
|
(Pdb) step
|
||||||
|
--Call--
|
||||||
|
> c:\users\maxzh\python-bootcamp\max submission\6_9_hw.py(97)calculate_square()
|
||||||
|
-> def calculate_square(x):
|
||||||
|
(Pdb) c
|
||||||
|
Square: 25
|
||||||
|
Cube: 125
|
||||||
Reference in New Issue
Block a user