Пікірлер
@bambinerierassoul-tz1bv
@bambinerierassoul-tz1bv 47 минут бұрын
Vous êtes excellents vraiment avec une pédagogie exceptionnelle merci
@ali.busscs
@ali.busscs 2 сағат бұрын
Merci BEAUCOUPP ! BEAUCOUP ! Ce travaille mérite plus de reconnaissance 🩵
@yboumhand
@yboumhand 2 сағат бұрын
#Solution Exo 15 : T = [] for i in range(3): row = [] for j in range(4): row.append(int(input(f"T[{i}][{j}]="))) T.append(row) n = int(input("Entrez un entier n : ")) occ = 0 for k in T : for l in k : if l == n: occ += 1 print(f"Nbr_Occurence de {n} = {occ} fois ")
@goureromaric6696
@goureromaric6696 2 сағат бұрын
J'ai essayé mais je n'y arrive pas
@yboumhand
@yboumhand 3 сағат бұрын
#Solution exo 14 : Une 2ième approche moins rigoureuse, #Q1 result = [[10, 12, 14.5, 6, 2.5] , [8, 6.5, 12, 14.5, 10.5 ] , [9.5, 14, 12, 15, 13.5 ] , [19, 20, 10, 19, 18]] #Q2 #Calcul de la somme : somme = sum(result[0]+result[1]+result[2]+result[3]) #concaténer toutes les sous-listes result[i] / 0<=i<len(result) #Calcul de la moyenne : moy = somme/(len(result)*len(result[0])) #somme/taille_resultante #Affichage de la somme et moyenne des notes des 4 modules : print(f"Resultats " f"Somme={somme} ; Moyenne={moy:.2f}") #OutPut : Resultats Somme=246.5 ; Moyenne=12.32 Process finished with exit code 0
@yvonleche4601
@yvonleche4601 6 сағат бұрын
Est-ce que je peux avoir la base de données initiale ?
@salahotman8450
@salahotman8450 7 сағат бұрын
o merci
@zakariaestudies
@zakariaestudies 8 сағат бұрын
allah yarham lwalidin merci
@rezguiroi6503
@rezguiroi6503 22 сағат бұрын
from deep_translator import GoogleTranslator text = 'Je suis un Très optimistes' translated = GoogleTranslator(source='auto', target='english').translate(text=text) print(translated)
@rokhayasene834
@rokhayasene834 Күн бұрын
Merci beaucoup
@salamoinstru6649
@salamoinstru6649 Күн бұрын
n=int(input("donner un nombre :")) s=0 for i in range(1,n+1) : if n%i==0 : s=s+1 if s==2 : print("ce nombre est premier ") else : print("ce nombre n'est pas premier ")
@rezguiroi6503
@rezguiroi6503 Күн бұрын
from faker import Faker fake = Faker("fr_FR") print(fake.name()) print(fake.city()) print(fake.job()) print(fake.date_of_birth())
@thatgl1577
@thatgl1577 Күн бұрын
merci prof💗
@MohamedMbarekKemal
@MohamedMbarekKemal Күн бұрын
merci
@rezguiroi6503
@rezguiroi6503 2 күн бұрын
# Import the 'calendar' module import calendar # Prompt the user to input the year and month y = int(input("Input the year : ")) m = int(input("Input the month : ")) print("*************************") # Print the calendar for the specified year and month print(calendar.month(y, m))
@rezguiroi6503
@rezguiroi6503 2 күн бұрын
def hotal_frais(n): f = n * 90 return f def loc_voitur_frais(j): v = 35 * j if 3 <= j < 7: v = v - 20 elif j >= 7: v = v - 50 return v def vol_frais(ville): ville = input("La ville de depart est: ") if ville == "Paris": return 200 elif ville == "Carthage": return 180 elif ville == "Oran": return 78 def main(n, j, ville, frais): f = hotal_frais(n) v = loc_voitur_frais(j) h = vol_frais(ville) a = frais print(f"le cout totale est de {f + v + h + a} euros") if __name__ == "__main__" : main(20, 10 , "ville", 200)
@rezguiroi6503
@rezguiroi6503 2 күн бұрын
from random import randint for i in range(0, 11): n = randint(1, 6) if n == 2 or n == 5: print(f"voila vous avez gangé, le nomber est :{n}") else: print(f"Vous avez perdu, le nombre est :{n}") print("****************************************") g = 0 p = 0 for j in range(0, 1000): k = randint(1, 6) if k == 2 or k == 5: g += 1 else: p += 1 print(f"Vous avez gangé : {g} fois et Pardu :{p} fois")
@bilalabarkane1052
@bilalabarkane1052 2 күн бұрын
Monsieur merci beaucoup pour votre information ou wlah vraiment ana ba3da kanfham ra andek nta bouhdk ou sad ila kan moumkin makrahtch tkamlina cour dial python kamel et merci beaucoup
@ayoubachbani4837
@ayoubachbani4837 2 күн бұрын
Autre solution pour l'ex 12: print("entrer 5 entiers") L=[ ] for i in range(5): print("L[",i+1,"]=") L.append(float(input( ))) m=L[0] for i in range (1,5): if L[i]>m: m=L[i] print("le max est:",m) 1/08/2024
@action6tem-ps5-83
@action6tem-ps5-83 3 күн бұрын
Merci beaucoup pour cette super application. j'ai eu un souci quand j'insère une date dans le tableau et que la relance n'exite plus dans le tableau des créances le filtre de mon TCD et affiche All tout et ne filtre plus le critère choisi vu qu'il n'existe pas j'obtiens pas comme toi 0 facture quand il n y a plus de relance tu peux stp me dire d'ou vient le problème ?
@vincentbalolayuma9298
@vincentbalolayuma9298 3 күн бұрын
je suis avec attention vos enseignements. comment puis je avoir ce logiciel et l'installer sur mon ordinateur pour m'exercer petit a petit
@yboumhand
@yboumhand 3 күн бұрын
#Solution : matrix = [] for i in range(5): row = [] for j in range(8): row.append(i) matrix.append(row) print(matrix)
@yboumhand
@yboumhand 3 күн бұрын
#Exo 12 : Solution L = [] print("Remplissez les éléments de la liste L : ") for i in range(1,6) : print(f"L{[i]}=",end="") L.append(int(input())) max = L[0] for i in L[1:] : if max < i : max = i print(f"max(L)={max}")
@yboumhand
@yboumhand 3 күн бұрын
#Exo 11 : def rechercheElt(x,L) : if x in L: print(f"{x} existe dans L") else: print(f"{x} n'existe pas dans L") def remplirListe(L) : for i in range(5) : L.append(input()) return L #ProgrammePrincipal# L = [] x = input("Donner une valeur x : ") print("Introduisez 5 éléments pour remplir la liste L :", end="") remplirListe(L) rechercheElt(x,L)
@yboumhand
@yboumhand 3 күн бұрын
17:09 : une approche simple et basique : Noms = ['Aya','Hanane','Ahmed'] Notes = [15 , 13.5 , 17] j = 0 for i in Noms : print(f"La note de {i} est {Notes[j]}") #f-string method j+=1
@sprint2185
@sprint2185 3 күн бұрын
❤❤❤
@yboumhand
@yboumhand 3 күн бұрын
#Exo 9 : Solution def maxStr(L) : max = L[0] for i in range(1,len(L)): if len(max) < len(L[i]) : max = L[i] print(f"Max = {max}") #ProgrammePrincipal# L = input("Entrez une liste de mots sous la forme (mot1,mot2,mot3 ...):").split(",") maxStr(L)
@salahotman8450
@salahotman8450 3 күн бұрын
Merci
@yboumhand
@yboumhand 4 күн бұрын
#Exo8 : def charCmp(mot1,mot2) : if mot1 == mot2: print(f"{mot1} est palindrome") else: print(f"{mot1} n'est pas palindrome") ### ProgrammePrincipal ### mot = input("Donner un mot :") l = list(mot) l.reverse() temp="" for i in l : temp+=i charCmp(mot,temp)
@yboumhand
@yboumhand 4 күн бұрын
#Exo6 : pays=['Maroc','Tunisie','Algerie','Mali','France'] ; print(pays) n, \ m=input("Choisissez le 1er pays de la liste en haut:"), \ input("Choisissez le 2ieme pays de la liste different du 1er en haut:") i,j = pays.index(n) , pays.index(m) pays[i] , pays[j] = pays[j] , pays[i] print(pays)
@hekinotratho9357
@hekinotratho9357 4 күн бұрын
35:18
@yboumhand
@yboumhand 4 күн бұрын
En 10:57 pour éviter le problème de chaine de caractère, on peut procéder comme suit : langues = ['AR', 'FR', 'EN'] print(langues) #ajouter l'élément 'ES' à la liste 'langues' langues.extend(('ES',)) #ajouter un tuple de longueur 1 # Or : langues.extend(['ES']) # ajouter une liste d'un seul élément print(langues)
@hekinotratho9357
@hekinotratho9357 4 күн бұрын
30:22
@ayoubachbani4837
@ayoubachbani4837 3 күн бұрын
السؤال ؟
@salamoinstru6649
@salamoinstru6649 4 күн бұрын
v = int(input(" donner l'age de Amel :")) p=0 if v <= 0 : print("l'age non valid ") v = int(input(" donner l'age de Amel :")) for i in range(1,v+1) : p=p+i*3+500 print("ilya dans le compte de Amal :",p,"da")
@salamoinstru6649
@salamoinstru6649 4 күн бұрын
v=int(input("donner un nombre :")) s=0 while v <= 0 : print("veuillez sasir un nombre positif ") break for i in range(1,v+1,2) : s=s+(i**2) print("la somme a egal :",s )
@ninasaleh3004
@ninasaleh3004 4 күн бұрын
Très intéressant merci beaucoup
@sultan-ali-i3
@sultan-ali-i3 5 күн бұрын
Merci !
@wafahamidat8727
@wafahamidat8727 5 күн бұрын
wesh ngolk! yaatik saha mandmtch ki tfarajt l vdo kaml merciii bcp🤗
@user-vi6dp3km4b
@user-vi6dp3km4b 5 күн бұрын
Bnjour
@امهاجررؤى
@امهاجررؤى 5 күн бұрын
جزاك الله خيرا شرح قمة في الروووعة
@karimasahouli552
@karimasahouli552 5 күн бұрын
Vraiment vous êtes le meilleur Merci bcp dieu te protège
@yenyabayeo6631
@yenyabayeo6631 5 күн бұрын
Merci infiniment pour cette formation! Les cours sont si bien expliqués.
@fernandsatus5228
@fernandsatus5228 5 күн бұрын
Merci pour le module, vraiment vous expliquez très bien, rassurez-vous je laisse toujours des petit toutou👍 après chaque vidéos passé même sur la formation avancé et autres question de vous soutenir pour ce dont vous disposez pour nous! Merci longue vie 💫
@fernandsatus5228
@fernandsatus5228 5 күн бұрын
Merci pour votre cœur de nous avoir laissé cette séance de vidéos encore en ligne, on apprends et on reprends les bonne méthode de travail et merci pour les liens et téléchargement Dieu vous bénisse
@user-db6mk9ex5c
@user-db6mk9ex5c 6 күн бұрын
int list[10] = {1, 3, 40, 2, 25, 23, 32, 18, 19, 9}; int taille = 10; for (int i = 1; i < taille; i++) { int index = i; int tmp = list[i]; for (int j = i - 1; j >= 0; j--) { if (list[j] > tmp) { list[index] = list[j]; index = j; } else { break; } } list[index] = tmp; }
@hichemmh6065
@hichemmh6065 6 күн бұрын
Voici une autre methode pour copier une chaîne de caractères vers une autre sans utiliser la fonction strcpy, cette fois en utilisant des pointeurs : #include <stdio.h> #include <stdlib.h> int main(){ char C1[100], C2[100]; char *p1, *p2; p1 = C1; p2 = C2; printf("Veuillez saisir la chaine de caractere C1 : "); fgets(C1, sizeof(C1), stdin); while (*p1 != '\0'){ *p2 = *p1; p1++; p2++; } *p2 = '\0'; printf("La premiere chaine est : %s", C1); printf("La deuxieme chaine est : %s", C2); printf("Nombre total de caracteres copies est %ld ", p2 - C2 + 1); }
@nathan.lerner
@nathan.lerner 6 күн бұрын
Voilà ma façon de le faire: nb = random.randint(1, 30) print(nb) chance = 5 while chance > 0: tent = int(input("Essayer de trouver le bon nombre: ")) if tent > 30 and chance > 0 or tent < 0 < chance: print("Le nombre est compris entre 0 et 30! Souvenez-vous en.") elif tent == nb and chance > 0: print("Vous avez trouvé le bon nombre!") break elif tent > nb and chance > 0: print("Essayer moins grand!") elif tent < nb and chance > 0: print("Essayer plus grand!") chance = chance - 1 print("Il vous reste "+str(chance)+" tentative!")
@nathan.lerner
@nathan.lerner 6 күн бұрын
voila ma solution: while True: nb = int(input("Veuillez saisir le nombre à tester: ")) if not nb == "": break i = 2 rest = 0 for i in range(2, nb): rest = rest + nb % i if rest == 0: print(str(nb)+" n'est pas un nombre premier.") break if not rest == 0: print(str(nb)+" est un nombre premier.") break if nb == 1: print(str(nb)+" est un nombre premier.") break
@AssanouBerangerZou
@AssanouBerangerZou 7 күн бұрын
#include <stdio.h> #include <stdlib.h> int main(){ int n; printf("saisir le nombre d'element du tableau:"); scanf("%d",&n); int tab[n]; int *p=tab; p=(int*)malloc(n*sizeof(int)); if(p==NULL){ printf("Erreur d'allocation"); } else{ printf("saisir les elements du tableau: "); for(p=tab;p<tab+n;p++){ printf("tab[%d]:",p-tab) ; scanf("%d",p); } int m,s=0; for(p=tab;p<tab+n;p++){ s=s+*p; } m=s/n; printf("la somme des elements est %d ",s); printf("la moyenne des elements est %d",m); } free(p); }
@user-lc9xn2qy7z
@user-lc9xn2qy7z 7 күн бұрын
salam ostad bnsba exercice li f d9i9a 8:48 wakha deja declarina s de type float resultat makhshach tkhrej de type float hit l9isma dial jouj dial les nombres de type int 4a y3tina resultat de type int 3liha kan9ol andiclariw s=s+1.0/i bach ndmno hsab da9i9 chwia chokran 3la had playliste