Answers for "python do something only in debug"

1

python __debug__

If you want to have a debugging feature in python, I know that Visual studio
code has a fantastic and easy to use debugger.
Posted by: Guest on April-12-2021
1

debugging in python

#following is a incorrect code correct this code and give the correct code 
#in comments
number = int(input("Which number do you want to check?"))

if number % 2 = 0:
  print("This is an even number.")
else:
  print("This is an odd number.")
#if you found the error and made it correct this is called debugging
Posted by: Guest on September-24-2021

Code answers related to "python do something only in debug"

Python Answers by Framework

Browse Popular Code Answers by Language