pourcentage.py

Created by bhenry1

Created on April 28, 2021

569 Bytes

Ce script définit des fonctions utiles pour les calculs avec des pourcentages


def en_pourcent(decimal): 
  return str(decimal*100)+" %"

def partie(ens, prop):
  part = ens * prop
  return part
  
def proportion(ens, part):
    prop = 0 # à vous
    return prop

def ensemble(prop, part):
    ens =  0 # à vous
    return  0 # à vous  
    
def arrive(dep, tau):
    coef =  1+tau # à vous
    arr =  dep*coef # à vous
    return arr
    
def taux(dep, arr):
    coef =  0 # à vous
    tau =  0 # à vous
    return  0 # à vous

def depart(tau, arr):
    coef =  0 # à vous
    dep =  0 # à vous
    return  0 # à vous

During your visit to our site, NumWorks needs to install "cookies" or use other technologies to collect data about you in order to:

With the exception of Cookies essential to the operation of the site, NumWorks leaves you the choice: you can accept Cookies for audience measurement by clicking on the "Accept and continue" button, or refuse these Cookies by clicking on the "Continue without accepting" button or by continuing your browsing. You can update your choice at any time by clicking on the link "Manage my cookies" at the bottom of the page. For more information, please consult our cookies policy.