SNT, leçon, fonctions, tests et boucle while

def f(x):
    return x**2+5*x-3

def population(n):
    return 1340*1.04**n

def landa(a,b,c):
    return a+b-c

def boucle(a,b):
    s=0
    for i in range(a,b):
        s+=i
    return s

def impair(n):
    if n%2==1:
        print("impair")
    else:
        print("pair")
        
def impair(n):
    if n%2!=0:
        print("impair")
    else:
        print("pair")
        
def boucle(a):
    while a<10:
        a=a+2
    return a

def depassement(k):
    n=0
    while (1+k/100)**n<2:
        n=n+1
    return n

def ulam(n):
    while n!=1:
        if n%2==0:
            n=n//2
        else:
            n=3*n+1
        print(n)