exercice_3_correction.py

Created by cahier-2de-snt2020

Created on April 28, 2020

250 Bytes

correction de l’exercice 3 p. 125 du cahier SNT Bordas.


def promotion(prix_initial):
    if prix_initial < 100 :
        prix_final=prix_initial*0.9
    else :
        prix_final=prix_initial*0.8
    if prix_final <= 150 :
        prix_final=prix_final+10
    return prix_final

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.