case.py 266 Bytes
Newer Older
Rémi PORÉE's avatar
Rémi PORÉE committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import numpy as np
import matplotlib.pyplot as plt

class Case :

    def __init__ (self,num) :
        self.num = num
        self.cont = 4

    def appartient (self) :
        if self.num <= 5 :
            return 1
        if self.num > 5 :
            return 2