Serie N2 1
Filière : DEV — Développement informatique (TDI, développement digital)
📥 Télécharger le PDF (265 Ko)Aperçu du contenu
Extrait des premières pages, texte tiré du PDF. Le document complet (4 pages) est dans le PDF.
Partie1 : Boucles Exercise 1 Create a for loop that counts from 0 to 10, and prints odd numbers to the screen. Use the skeleton below: for i in range(1, 11): # Line of code. # Line of code.
Create a while loop that counts from 0 to 10, and prints odd numbers to the screen. Use the skeleton below:
Exercise 3 Create a program with a for loop and a break statement. The program should iterate over characters in an email address, exit the loop when it reaches the @ symbol, and print the part before @ on one line. Use the skeleton below:
Exercise 4 Create a program with a for loop and a continue statement. The program should iterate over a string of digits, replace each 0 with x , and print the modified string to the screen. Use the skeleton below:
# Line of code. # Line of code. # Line of code. Exercise 5 What is the output of the following code?
Autres documents de la filière DEV
seance1 3 td qcm 631b2e3703cc0 1
Exercicesseance3 1 cours
Exercicesseance1 2 cours solution des exercices 631b2e2b1bab3 1
Exercicesseance3 2 travaux pratiques
ExercicesPython serie1 if 2 1
Exercicesseance1 4 annexes 631b2e40c5417 1
Exercicesseance4 1 cours 631b2e9514e4b
ExercicesSerie 1 Exercices
Toutes les filières
Document pédagogique de la formation professionnelle, partagé pour les stagiaires. Les supports officiels de votre promotion restent ceux de votre formateur et d'OFPPT Academy. Ce document vous appartient ou doit être retiré ? Écrivez à [email protected], il sera retiré sous 48 h.