How to debug a Python Program | Python built-in breakpoint() Function
code:-
def factorial(n):
breakpoint()
res = 1
for i in range(1,n+1):
res = res * i
return res
a = eval(input ("enter a number "))
a = int(a)
breakpoint()
f = factorial(a)
print(f)
=============================================================================
Link for Tutorial Series
Jupyter Notebook Tutorial Series:-
• How To Open Jupyter Notebook in Windows
Python Tutorial Series:-
• Introduction to Python | Python Appli...
Python Assignments and Objective Questions:-
• Objective Questions Python - 1
Tech. Videos By Parag Dhawan;-
• Template Matching Using OpenCV (Pytho...
=============================================================================
Feel free to connect and ask your queries:-
Linkedin:- / parag-dhawan
Youtube:- / paragdhawan
Facebook Page:- http://fb.me/dhawanparag
Instagram: - / paragdhawan
Twitter:- / dhawan_parag
GitHub:- https://github.com/paragdhawan/
Facebook Profile:- https://www.facebook.com/profile.php?...
=============================================================================
Show your support by Subscribing to the channel:-
https://www.youtube.com/c/ParagDhawan...
=============================================================================
Link of Next video:- • Storing Functions In Variable and Dat...
=============================================================================
#ParagDhawan
#PythonCrashCourse
#Python
#PythonTutorialForBeginners
#PythonForDataScience
#PythonProgramming
#PythonProgrammingLanguage
#PythonTutorial
#PythonCode
#Python3
=============================================================================
Note: Watch the video at a speed of 1.5