SlideShare une entreprise Scribd logo
1  sur  10
PPrrooggrraammmmaattiioonn 
ccoommppoossiittiioonn
CCoommppoossiittiioonn :: 
● SSééqquueennccee ((vvuu)) 
● AAlltteerrnnaattiivvee 
● IIttéérraattiivvee 
● …… ffoonnccttiioonnss...... ++ttaarrdd
AAlltteerrnnaattiivvee ((iiff)) ssiimmppllee 
Programme 
a=3 
If a > 0: 
print("a positif") 
Mémoire vive 
- RAM 
Écran 
a positif 
A 3 Vrai
iiff ssiimmppllee aavveecc ccaallccuull 
Programme 
a=3 
If a-5 > 0: 
print("a-5 positif") 
Mémoire vive 
- RAM 
Écran 
A 3 Faux
IIff -- eellssee 
Programme 
a=3 
if a > 0: 
print("a positif") 
else: 
print ("a négatif ou nul”) 
print("fin") 
Mémoire vive 
- RAM 
Écran 
A 3 Vrai 
a positif 
fin
IIff -- eellssee 
Programme 
a=-3 
if a > 0: 
print("a positif") 
else: 
print ("a négatif ou nul”) 
print("fin") 
Mémoire vive 
- RAM 
Écran 
A -3 Faux 
a négatif ou nul 
fin
IIff iimmbbrriiqquuééss 
Programme 
a=-3 
if a > 0: 
print("a positif") 
else: 
if a==0: 
print ("a nul”) 
else: 
print("a négatif") 
Mémoire vive 
- RAM 
Écran 
A -3 Faux 
a négatif
IIff iimmbbrriiqquuééss ssiimmpplliiffiiéé 
Programme 
a=-3 
if a > 0: 
print("a positif") 
elif a==0: 
print ("a nul”) 
else: 
print("a négatif") 
Mémoire vive 
- RAM 
Écran 
A -3 Faux 
a négatif
IIttéérraattiivvee ssiimmppllee 
Programme 
i=1 
while i<3: 
print(i, "e tour") 
i=i+1 
print("fin") 
Mémoire vive 
- RAM 
Écran 
i 123 FVaruaxi 
1 e tour 
2 e tour 
fin
IIttéérraattiivvee ssiimmppllee 
Programme 
i=1 
while i<=3: 
print(i*"e") 
i=i+1 
print("fin") 
Mémoire vive 
- RAM 
Écran 
i 1 Faux 
e ee 
fin 
234 Vrai 
eee

Contenu connexe

En vedette

Déambulations numériques 2rewics
Déambulations numériques 2rewicsDéambulations numériques 2rewics
Déambulations numériques 2rewics
Nathalie Caclard
 
La música en el tractor
La música en el tractorLa música en el tractor
La música en el tractor
Jose Catalan
 
Présentation PSB SFAF Mars 2016
Présentation PSB SFAF Mars 2016Présentation PSB SFAF Mars 2016
Présentation PSB SFAF Mars 2016
Olivier Salaun
 
L’apprenant n’est pas une boîte noire : mesurer l’émotion, l’engagement et ap...
L’apprenant n’est pas une boîte noire : mesurer l’émotion, l’engagement et ap...L’apprenant n’est pas une boîte noire : mesurer l’émotion, l’engagement et ap...
L’apprenant n’est pas une boîte noire : mesurer l’émotion, l’engagement et ap...
Pierre-Majorique Léger
 
BRIGITTE BARDOT
BRIGITTE BARDOT BRIGITTE BARDOT
BRIGITTE BARDOT
Lena
 
Las Redes Informaticas.
Las Redes Informaticas.Las Redes Informaticas.
Las Redes Informaticas.
mirima
 
Presentación tesis
Presentación tesisPresentación tesis
Presentación tesis
educant
 
Boletin N 22 17 De Septiembre 2009
Boletin N 22   17 De Septiembre 2009Boletin N 22   17 De Septiembre 2009
Boletin N 22 17 De Septiembre 2009
Patricia Bertolotti
 

En vedette (20)

DINEPA INFOS Edition spéciale semaine de l'Eau 2015
DINEPA INFOS Edition spéciale semaine de l'Eau 2015DINEPA INFOS Edition spéciale semaine de l'Eau 2015
DINEPA INFOS Edition spéciale semaine de l'Eau 2015
 
La investigación sobre la educación a distancia soportada en redes telemáticas
La investigación sobre la educación a distancia soportada en redes telemáticasLa investigación sobre la educación a distancia soportada en redes telemáticas
La investigación sobre la educación a distancia soportada en redes telemáticas
 
Eco Guide Partie 2
Eco Guide Partie 2Eco Guide Partie 2
Eco Guide Partie 2
 
Déambulations numériques 2rewics
Déambulations numériques 2rewicsDéambulations numériques 2rewics
Déambulations numériques 2rewics
 
La música en el tractor
La música en el tractorLa música en el tractor
La música en el tractor
 
Présentation PSB SFAF Mars 2016
Présentation PSB SFAF Mars 2016Présentation PSB SFAF Mars 2016
Présentation PSB SFAF Mars 2016
 
Food in French
Food in FrenchFood in French
Food in French
 
#25ansAPESS. L'APESS et l'évolution de l'élevage par Loïc Barbedette
#25ansAPESS. L'APESS et l'évolution de l'élevage par Loïc Barbedette#25ansAPESS. L'APESS et l'évolution de l'élevage par Loïc Barbedette
#25ansAPESS. L'APESS et l'évolution de l'élevage par Loïc Barbedette
 
L’apprenant n’est pas une boîte noire : mesurer l’émotion, l’engagement et ap...
L’apprenant n’est pas une boîte noire : mesurer l’émotion, l’engagement et ap...L’apprenant n’est pas une boîte noire : mesurer l’émotion, l’engagement et ap...
L’apprenant n’est pas une boîte noire : mesurer l’émotion, l’engagement et ap...
 
Antón Patiño Visita Virtual Exposición 2007
Antón Patiño Visita Virtual Exposición 2007Antón Patiño Visita Virtual Exposición 2007
Antón Patiño Visita Virtual Exposición 2007
 
BRIGITTE BARDOT
BRIGITTE BARDOT BRIGITTE BARDOT
BRIGITTE BARDOT
 
Las Redes Informaticas.
Las Redes Informaticas.Las Redes Informaticas.
Las Redes Informaticas.
 
Tesis is
Tesis isTesis is
Tesis is
 
Haydn emperor
Haydn   emperorHaydn   emperor
Haydn emperor
 
Presentación tesis
Presentación tesisPresentación tesis
Presentación tesis
 
Boletin N 22 17 De Septiembre 2009
Boletin N 22   17 De Septiembre 2009Boletin N 22   17 De Septiembre 2009
Boletin N 22 17 De Septiembre 2009
 
Réunion Clévacances 2009
Réunion Clévacances 2009Réunion Clévacances 2009
Réunion Clévacances 2009
 
Charla Sta Fe 2009
Charla Sta Fe 2009Charla Sta Fe 2009
Charla Sta Fe 2009
 
Neurocoaching Practico - Hacernos Cargo
Neurocoaching Practico - Hacernos CargoNeurocoaching Practico - Hacernos Cargo
Neurocoaching Practico - Hacernos Cargo
 
Cuisine vietnamienne
Cuisine vietnamienneCuisine vietnamienne
Cuisine vietnamienne
 

Dernier

Copie de Engineering Software Marketing Plan by Slidesgo.pptx.pptx
Copie de Engineering Software Marketing Plan by Slidesgo.pptx.pptxCopie de Engineering Software Marketing Plan by Slidesgo.pptx.pptx
Copie de Engineering Software Marketing Plan by Slidesgo.pptx.pptx
ikospam0
 
Bilan énergétique des chambres froides.pdf
Bilan énergétique des chambres froides.pdfBilan énergétique des chambres froides.pdf
Bilan énergétique des chambres froides.pdf
AmgdoulHatim
 
Cours Préparation à l’ISO 27001 version 2022.pdf
Cours Préparation à l’ISO 27001 version 2022.pdfCours Préparation à l’ISO 27001 version 2022.pdf
Cours Préparation à l’ISO 27001 version 2022.pdf
ssuserc72852
 

Dernier (20)

Copie de Engineering Software Marketing Plan by Slidesgo.pptx.pptx
Copie de Engineering Software Marketing Plan by Slidesgo.pptx.pptxCopie de Engineering Software Marketing Plan by Slidesgo.pptx.pptx
Copie de Engineering Software Marketing Plan by Slidesgo.pptx.pptx
 
Apolonia, Apolonia.pptx Film documentaire
Apolonia, Apolonia.pptx         Film documentaireApolonia, Apolonia.pptx         Film documentaire
Apolonia, Apolonia.pptx Film documentaire
 
STRATEGIE_D’APPRENTISSAGE flee_DU_FLE.pdf
STRATEGIE_D’APPRENTISSAGE flee_DU_FLE.pdfSTRATEGIE_D’APPRENTISSAGE flee_DU_FLE.pdf
STRATEGIE_D’APPRENTISSAGE flee_DU_FLE.pdf
 
Cours ofppt du Trade-Marketing-Présentation.pdf
Cours ofppt du Trade-Marketing-Présentation.pdfCours ofppt du Trade-Marketing-Présentation.pdf
Cours ofppt du Trade-Marketing-Présentation.pdf
 
L application de la physique classique dans le golf.pptx
L application de la physique classique dans le golf.pptxL application de la physique classique dans le golf.pptx
L application de la physique classique dans le golf.pptx
 
Les roches magmatique géodynamique interne.pptx
Les roches magmatique géodynamique interne.pptxLes roches magmatique géodynamique interne.pptx
Les roches magmatique géodynamique interne.pptx
 
Intégration des TICE dans l'enseignement de la Physique-Chimie.pptx
Intégration des TICE dans l'enseignement de la Physique-Chimie.pptxIntégration des TICE dans l'enseignement de la Physique-Chimie.pptx
Intégration des TICE dans l'enseignement de la Physique-Chimie.pptx
 
L'expression du but : fiche et exercices niveau C1 FLE
L'expression du but : fiche et exercices  niveau C1 FLEL'expression du but : fiche et exercices  niveau C1 FLE
L'expression du but : fiche et exercices niveau C1 FLE
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI DẠY BUỔI 2) - TIẾNG ANH 6, 7 GLOBAL SUCCESS (2...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI DẠY BUỔI 2) - TIẾNG ANH 6, 7 GLOBAL SUCCESS (2...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI DẠY BUỔI 2) - TIẾNG ANH 6, 7 GLOBAL SUCCESS (2...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI DẠY BUỔI 2) - TIẾNG ANH 6, 7 GLOBAL SUCCESS (2...
 
La nouvelle femme . pptx Film français
La   nouvelle   femme  . pptx  Film françaisLa   nouvelle   femme  . pptx  Film français
La nouvelle femme . pptx Film français
 
Formation qhse - GIASE saqit_105135.pptx
Formation qhse - GIASE saqit_105135.pptxFormation qhse - GIASE saqit_105135.pptx
Formation qhse - GIASE saqit_105135.pptx
 
Bilan énergétique des chambres froides.pdf
Bilan énergétique des chambres froides.pdfBilan énergétique des chambres froides.pdf
Bilan énergétique des chambres froides.pdf
 
Formation échiquéenne jwhyCHESS, parallèle avec la planification de projet
Formation échiquéenne jwhyCHESS, parallèle avec la planification de projetFormation échiquéenne jwhyCHESS, parallèle avec la planification de projet
Formation échiquéenne jwhyCHESS, parallèle avec la planification de projet
 
Cours Généralités sur les systèmes informatiques
Cours Généralités sur les systèmes informatiquesCours Généralités sur les systèmes informatiques
Cours Généralités sur les systèmes informatiques
 
Conférence Sommet de la formation 2024 : Développer des compétences pour la m...
Conférence Sommet de la formation 2024 : Développer des compétences pour la m...Conférence Sommet de la formation 2024 : Développer des compétences pour la m...
Conférence Sommet de la formation 2024 : Développer des compétences pour la m...
 
Cours Préparation à l’ISO 27001 version 2022.pdf
Cours Préparation à l’ISO 27001 version 2022.pdfCours Préparation à l’ISO 27001 version 2022.pdf
Cours Préparation à l’ISO 27001 version 2022.pdf
 
RAPPORT DE STAGE D'INTERIM DE ATTIJARIWAFA BANK
RAPPORT DE STAGE D'INTERIM DE ATTIJARIWAFA BANKRAPPORT DE STAGE D'INTERIM DE ATTIJARIWAFA BANK
RAPPORT DE STAGE D'INTERIM DE ATTIJARIWAFA BANK
 
Echos libraries Burkina Faso newsletter 2024
Echos libraries Burkina Faso newsletter 2024Echos libraries Burkina Faso newsletter 2024
Echos libraries Burkina Faso newsletter 2024
 
658708519-Power-Point-Management-Interculturel.pdf
658708519-Power-Point-Management-Interculturel.pdf658708519-Power-Point-Management-Interculturel.pdf
658708519-Power-Point-Management-Interculturel.pdf
 
CompLit - Journal of European Literature, Arts and Society - n. 7 - Table of ...
CompLit - Journal of European Literature, Arts and Society - n. 7 - Table of ...CompLit - Journal of European Literature, Arts and Society - n. 7 - Table of ...
CompLit - Journal of European Literature, Arts and Society - n. 7 - Table of ...
 

04 presentation-composition d-instructions