All pastes #388318 Raw Edit

fkraiem at enib.fr

public python v1 · immutable
·published 2007-03-09 23:59 UTC
rendered paste body
#!/usr/bin/env pythonx = 0def inc() :	global x	x += 1	print x	def dec() :	global x	x -= 1	print x	while True :	a = input('1 : inc, 2 : dec ?')	if a == 1 : inc()	elif a == 2 : dec()	else : break