cristianvasquez/obsidian-snippets-plugin

stdout maxbuffer length exceeded

Klaudioz opened this issue · 1 comments

With this code, I'm getting that error:

def printEvenOdd(n):
	while(n > 0):
		if (n % 2 == 0):
			print ('Even number:',n)
		else:
			print ('Odd number:',n)
		n-= n - 1

printEvenOdd(2)

Hi,

The execution of your code does not end. (change the n-= n - 1 to n = n-1). You can always try your code in the python interpreter or in an IDE...

Cheers!