I installed PyCharm a few days ago, and it worked fine, but for some reason, when I code something now, it prints it twice. For example, for the code: n = 4 if n == 1: print(n, "is 1") elif n == 2: print(n, "is 2") else: print(n, "is not 1 or 2") It gives me the output: 4 is not 1 or 2 4 is not 1 or 2 I tried to clear my cache as suggested in double printing in pycharm but it didn't help. I also tried to make a new file, but it had the same problem. I also tried a different code. When I tried a code with while loop, it enters the loop twice. Meaning after break, it reruns the code. Continue reading...