from docx import Document
[Link]
print("Bien")
else :
print("Très bien")
nombre N°2:"))
res=float
op=str(input("Saisir un un opérateur:"))
if op=='+' :
res=nbr1+nbr2
elif op=='-' :
res=nbr1-nbr2
elif op=='*' :
res=nbr1*nbr2
elif op=='/' :
res=nbr1/nbr2
print("Le résultat est:",res)
SERIE 2
Ex1
PHT=float(input("Saisir le prix hors taxe de cet article:"))
TTVA=int(input("Saisir le taux TVA:"))
PTTC=float
while TTVA<1 or TTVA>5:
print("Saisir le taux TVA entre 1 et 5:")
if TTVA==1 :
PTTC=PHT-(PHT*0.123)
elif TTVA==2 :
PTTC=PHT+(PHT*0.165)
elif TTVA==3 :
PTTC=PHT+(PHT*0.167)
elif TTVA==4 :
PTTC=PHT+(PHT*0.155)
elif TTVA==5 :
PTTC=PHT+(PHT*0.123)
print("Le prix TTC est:",PTTC)