1#following is a incorrect code correct this code and give the correct code
2#in comments
3number = int(input("Which number do you want to check?"))
4
5if number % 2 = 0:
6 print("This is an even number.")
7else:
8 print("This is an odd number.")
9#if you found the error and made it correct this is called debugging
1import pdb
2def fact(x):
3 f = 1
4 for i in range(1,x+1):
5 pdb.set_trace()
6 print (i)
7 f = f * i
8 return f
9if __name__=="__main__":
10 print ("factorial of 3=",fact(3))