Correction devoir pratique 2023 13h

  Рет қаралды 9,592

programmation tn

programmation tn

Күн бұрын

Пікірлер: 38
@programmationtn
@programmationtn 7 ай бұрын
code : from PyQt5.uic import loadUi from PyQt5.QtWidgets import QApplication from numpy import array def TriSelection(T,N): for i in range(N-1): posmin = i for j in range(i+1,N): if(len(T[j]) < len(T[posmin])): posmin = j if(posmin != i): aux = T[i] T[i] = T[posmin] T[posmin] = aux def espace (ch): i = 0 verif = True while(verif == True and i < len(ch) - 1 ): if(ch[i] == " " and ch[i+1] == " "): verif = False else: i = i + 1 return verif def Trier(ch): T = array([str] * len(ch)) pos = ch.find(" ") N = 0 while(pos != -1): element = ch[:pos] T[N] = element N = N + 1 ch = ch[pos+1:] pos = ch.find(" ") element = ch[:len(ch) - 1 ] T[N] = element N = N + 1 TriSelection(T,N) res = "" for i in range(N): res = res + T[i] + " " return res def Play(): ch = windows.ch.text() if(len(ch) == 0): windows.res.setText("Veuillez introduire une phrase") elif (len(ch) >= 50 ): windows.res.setText("Veuillez introduire une phrase de taille inferieur à 50") elif (ch[0].upper() < "A" or ch[0].upper() > "Z"): windows.res.setText("La phrase commence par une lettre") elif ( ch[len(ch) - 1] != "."): windows.res.setText("La chaine doit se terminer par un point") elif ( espace(ch) == False): windows.res.setText("Entre 2 mots 1 seul espace est autorisé") else: ch = Trier(ch) windows.res.setText(ch) app = QApplication([]) windows = loadUi ("InterfaceTriage.ui") windows.show() windows.Trier.clicked.connect (Play) app.exec_()
@theamericannightmereCodyRhodes
@theamericannightmereCodyRhodes 7 ай бұрын
merci beaucoup monsieur yaatik saha
@programmationtn
@programmationtn 7 ай бұрын
Maghyr mzeya!
@mohag4mer926
@mohag4mer926 7 ай бұрын
Merci❤
@EyaMnejja
@EyaMnejja 7 ай бұрын
Merci beaucoup ❤
@programmationtn
@programmationtn 7 ай бұрын
Derien!
@shakelyt949
@shakelyt949 7 ай бұрын
Très très très importante remarque svp Yar7m weldik li t7b t3awena w y3tik s7a mais rod belk 3al5r ketblek "NB:noter bien l'affichage doit être conforme aux exemplesd'executions" m3ndkch l7a9 jeeeemla tzid affichage mn3andk Svp salla7ha fi a9rb wa9t 9bal ma l3bed yo8ltou !!!!
@programmationtn
@programmationtn 7 ай бұрын
Mela chnowa bech tktblou wa9tly y7ot chaine mahich a9al men 50 trah? Ma3takech howa
@Elyyeess
@Elyyeess 7 ай бұрын
taaml mzeyya taamlelna copier coller lel code fi description wla comment
@programmationtn
@programmationtn 7 ай бұрын
c bon ahwka f comment
@Elyyeess
@Elyyeess 7 ай бұрын
@@programmationtn aycho wlh
@Elyyeess
@Elyyeess 7 ай бұрын
@@programmationtn blhy andi question fazeet ch[::-1] fama chkoun kali hors programme berrasmi yekhi ?
@arfaouimohamedaziz8317
@arfaouimohamedaziz8317 7 ай бұрын
est ce que najem nessta3ml < ch = T.permuter()> fe 3oudh mana3ml devellopemnt mt3 fonction triage?
@footliveball1786
@footliveball1786 7 ай бұрын
Devoir 3aditou 3amnel walh gasra manensehech 😂
@wrariwiem5578
@wrariwiem5578 7 ай бұрын
Najem na3mel remplir l tableau w ba3e na3mel tri ili nheb 3lih??
@programmationtn
@programmationtn 7 ай бұрын
Adheka ena chnowa 3malt
@youssefghazali2736
@youssefghazali2736 7 ай бұрын
Manajamch naamel not(ch.find(double espace)!=-1 ?
@programmationtn
@programmationtn 7 ай бұрын
Tnajem
@YuRRicKk
@YuRRicKk 7 ай бұрын
belahi fi 3oudh def espace najem na3ml if ch.find(" ")!=-1 ???
@FatmaKhsib
@FatmaKhsib 7 ай бұрын
tnajem
@programmationtn
@programmationtn 7 ай бұрын
Tnajem ey!
@Nour-yf6xf
@Nour-yf6xf 7 ай бұрын
fl deux espace mch tnjm taaml elif not (ch.find(" ")==-1):??
@brainfreeze4574
@brainfreeze4574 7 ай бұрын
Tnajjem
@rouissidhia
@rouissidhia 7 ай бұрын
ey t7out zouz espace
@programmationtn
@programmationtn 7 ай бұрын
Oui fekra yeser behya!
@seifddinjmili8285
@seifddinjmili8285 7 ай бұрын
3lh fi fazet el 2 espace ma5dmtch bel elif ch.find(" ")!=-1 ???
@programmationtn
@programmationtn 7 ай бұрын
Tnajem t5dmha kima 9olt enty
@kirwatt
@kirwatt 7 ай бұрын
Fama condition nsitha '' ch contenant au max 15mots"
@programmationtn
@programmationtn 7 ай бұрын
Le edhyka just 7ab ysahel alik el declaration mte3 tableau ta3mlou array de 15 mahich condition
@mohamedfakhfekh7280
@mohamedfakhfekh7280 7 ай бұрын
Tnajem to9oli mnin nsobo pdf nuib n5rjo w n5dmo wa7di w b3d ntab3 correction w merci
@OussamaAkrimi-wk2vh
@OussamaAkrimi-wk2vh 7 ай бұрын
mn bac web normalment
@YassminHamdi-ke8mi
@YassminHamdi-ke8mi 7 ай бұрын
Odkhel Google w a3mel search 3la "les epreuves info bac 2023" taw ykharajhomlk lkol ekhtar eli hachtek bih
@mohamedabid7503
@mohamedabid7503 7 ай бұрын
L qt lazem ykounou en gras walla 3adi
@YassminHamdi-ke8mi
@YassminHamdi-ke8mi 7 ай бұрын
Kif ta3mlhom gras ahssan bech tkoun kima l'annexe bedhabt... Mais profna 9al may9ala9ch ken ma3mltch
@benalirayen1057
@benalirayen1057 7 ай бұрын
fl deux espace njm naaml elif ch.find(" ")>=0
@FatmaKhsib
@FatmaKhsib 7 ай бұрын
ch.find(" ")!=-1 haka temchi
@programmationtn
@programmationtn 7 ай бұрын
Ouiii
Correction Devoir Pratique 2024 08H00 Bac Math Sc Technique (Horner)
37:15
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 40 МЛН
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 37 МЛН
Correction devoir Bac blanc 2024 SC / Math / Technique
42:59
programmation tn
Рет қаралды 3,4 М.
Matchy Matchy 💞 Ep 09: Mahdi Baccouch & Zoubeida
27:15
Match
Рет қаралды 417 М.
Matchy Matchy 💞 Ep 16: Hamdy & Malek
28:59
Match
Рет қаралды 507 М.
Les enregistrements BAC INFO / 3éme INFO
12:34
programmation tn
Рет қаралды 6 М.
Les sous-programmes Algorithme ( fonctions / procedures)
41:46
programmation tn
Рет қаралды 11 М.