From 902e763b0f43b19b32d1084f66fbe1bbf5aecfe3 Mon Sep 17 00:00:00 2001 From: bos Date: Fri, 9 Nov 2007 16:22:39 +0100 Subject: [PATCH] Soyons srieux, tout de mme. darcs-hash:20071109152239-c992d-d350b63463de1d4b1a3ead47ec4a3f31a8c30aec.gz --- gestion/crans_nazi.py | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100755 gestion/crans_nazi.py diff --git a/gestion/crans_nazi.py b/gestion/crans_nazi.py deleted file mode 100755 index 2656b1c0..00000000 --- a/gestion/crans_nazi.py +++ /dev/null @@ -1,30 +0,0 @@ -#! /usr/bin/env python -# -*- coding: iso-8859-15 -*- - -import random - -charte_MA = "Tu n'as pas signé la charte des membres actifs." - -def punition(motif): - """ Comment rappeler aux gens qu'ils doivent signer - la charte des membres acifs. """ - print "%s" % motif - print "Pour la peine, tu vas faire un peu de calcul mental." - - ok = False - while ok == False: - - a = random.randint(11,99) - b = random.randint(11,99) - q = "Combien fait %(a)s + %(b)s : " % {'a' : a, 'b' : b} - r = a + b - - t = input(q) - if int(t) == r: - print "bonne réponse" - ok = True - else: - print "mauvaise réponse" - -if __name__ == '__main__': - punition(charte_MA)