fkraiem at enib.fr
public python v1 · immutable#!/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#!/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