if

Recherche

Voici les résultats de votre recherche.

matplotlib_simple
1 Occurrences trouvées, Dernière modification :
ary and may lead to wrong conclusions about data. If you want to visualize a variable, better to choos
notions_fondamentales
38 Occurrences trouvées, Dernière modification :
mots réservés » utilisés par le langage lui-même (if, elif, while, for, else, print,...). * Instruct... cs.python.org/3/reference/compound_stmts.html#the-if-statement|documentation officielle]] ou [[http://... ou "faux" (false). Exemple : <code python> a = 0 if a > 0 : print("a est positif") print("car... " sous-tend une condition alternative. un simple "if" correspond à une expression conditionnelle. *
notions_avancees
2 Occurrences trouvées, Dernière modification :
Use]] Anup Das, Medium, 22/11/2022 ==== One-line if - then - else (ternary operator) ==== <code python> u = 10 v = 100 reponse = "u plus grand que v" if u > v else "v plus grand ou égal à u" print(repon
presentation_principes
7 Occurrences trouvées, Dernière modification :
nelle ==== Instruction d’exécution conditionnelle if...elif...else (si...sinon-si...autrement) * Commence par **if expression** : * Si l’expression est vraie, le ... code python> a = int(input('Donnez une note ? ')) if a >= 18: print("Excellent") elif a >= 16: ... , dt, flag x1, y1 = x1 +vx*dt, y1 + vy*dt if x1 < 0 or x1 > 220: vx=-vx if y1 < 0
tkinter_gui_simple
1 Occurrences trouvées, Dernière modification :
global hauteur,v hauteur = hauteur + v if hauteur > 250 or hauteur < 130: v = -v
algos_entiers
11 Occurrences trouvées, Dernière modification :
(n): for x in range(2,int(n**0.5)+1): if n % x == 0: return False return T... f primelist(n): return [a for a in range(2,n) if isprime(a)] p=primelist(1000) print(p) </code> ... : ncur += 1 return [a for a in li if a != 0] # renvoie une liste avec les élements no... com/software-development/python/code/216880/check-if-a-number-is-a-prime-number-python]] * [[http://
tris
6 Occurrences trouvées, Dernière modification :
i d'éléments entiers. """ def quicksort(li): if li == []: return [] pivot = li[0] equal =... [pivot] lesser = quicksort([x for x in li[1:] if x <= pivot]) # si x < pivot : élimination des do... ublons greater = quicksort([x for x in li[1:] if x > pivot]) return lesser + equal + greater ... sible : <code python> ... def quicksort(li): if li == []: return [] pivot = li[0] return
mendeleev
1 Occurrences trouvées, Dernière modification :
) nonsymbols = [U for U in string.ascii_uppercase if U not in symbols] print(nonsymbols) </code> ====
bioinformatic
2 Occurrences trouvées, Dernière modification :
c in adn: for i in range(len(ACGT)): if c == ACGT[i]: count[i] +=1 for val in... ''.join(sorted(list(set([v for k,v in dic.items() if v != "STOP"])))) print(aminoacids) # UniProt Pro
openbabel_jmol
2 Occurrences trouvées, Dernière modification :
ilder.Build(mol) mol = OBMolMinimize(mol) if filename is None: return mol # save structure... es['1-Pentanol'] = 'CCCCCO' return molecules if __name__ == '__main__': etab = openbabel.OBE
polynomes-bonus
2 Occurrences trouvées, Dernière modification :
n2 = len(t) # ordre du second polynôme if n1 > n2: # premier polynôme de plus haut degré ... n = len(a)-1 for j in range(n+1): if j%2 == 0: p.append(a[j])
ph_courbe_titrage_2011
2 Occurrences trouvées, Dernière modification :
erminer quel radioboutton est sélectionné if equation_index == 0: #si aucun des radios b... == 4: rep=14+log10(float(ca)) if rep<0 or rep>14: fenwarn = Toplevel(f
game_of_life_conway-2012
10 Occurrences trouvées, Dernière modification :
A living cell dies of overcrowding or loneliness if it has more than three or fewer than two neighbours; a dead cell is brought to life if it has exactly three neighbours (determined in Ce... will be alive at the next iteration.""" if self.state==Cell.LIVE and \ (numNeigh... ,newstate): self.state = newstate if self.state==Cell.LIVE: self["bg"] = "
elements_molecules
1 Occurrences trouvées, Dernière modification :
methodList = [method for method in dir(object) if callable(getattr(object, method))] processFun
codes_presentation
4 Occurrences trouvées, Dernière modification :
, dt, flag x1, y1 = x1 +vx*dt, y1 + vy*dt if x1 < 0 or x1 > 220: vx=-vx if y1 < 0 or y1 > 220: vy = -vy can1.coords(oval1,x1,y1,x1+30,y1+30) if flag >0: fen1.after(2,move) # boucler a... "démarrage de l'animation" global flag if flag ==0: # pour éviter que le bouton ne puisse l
collection_counter_exemple
1 Occurrences trouvées, Dernière modification :
pka_pkb_plane @teaching:progappchim:matplotlib_gallery
1 Occurrences trouvées, Dernière modification :
representation_molecules_2013
15 Occurrences trouvées, Dernière modification :
potentiel_morse @teaching:progappchim:matplotlib_gallery
1 Occurrences trouvées, Dernière modification :
glossaire_chimie
1 Occurrences trouvées, Dernière modification :
polynomes-7
1 Occurrences trouvées, Dernière modification :
matrices
1 Occurrences trouvées, Dernière modification :
suite_de_fibonacci-5
3 Occurrences trouvées, Dernière modification :
koch_snowflake
1 Occurrences trouvées, Dernière modification :
fizz_buzz
5 Occurrences trouvées, Dernière modification :
polynomes-11
3 Occurrences trouvées, Dernière modification :
polynomes-10
4 Occurrences trouvées, Dernière modification :
polynomes-8
1 Occurrences trouvées, Dernière modification :
factorielle-3
1 Occurrences trouvées, Dernière modification :
suite_de_fibonacci-4
6 Occurrences trouvées, Dernière modification :
suite_de_fibonacci-3
8 Occurrences trouvées, Dernière modification :
dictionaries_adn_arn_protein
3 Occurrences trouvées, Dernière modification :
solubilite_ph_t
7 Occurrences trouvées, Dernière modification :
fit_modele_einstein
1 Occurrences trouvées, Dernière modification :
lennard-jones
1 Occurrences trouvées, Dernière modification :
ensemble_mandelbrot_2013
3 Occurrences trouvées, Dernière modification :
factorielle-4
1 Occurrences trouvées, Dernière modification :
diffusion_chimique_1d
1 Occurrences trouvées, Dernière modification :
osm_interrogation
2 Occurrences trouvées, Dernière modification :
gaz_parfait_2011
4 Occurrences trouvées, Dernière modification :
conversion_temperature_2011
3 Occurrences trouvées, Dernière modification :
calcul_matriciel_2012
12 Occurrences trouvées, Dernière modification :
ph_acides_bases_2013
2 Occurrences trouvées, Dernière modification :
grille_configurations_melange_binaire_2013
1 Occurrences trouvées, Dernière modification :
courbe_predominance_acide_2013
7 Occurrences trouvées, Dernière modification :
pavage_penrose_2013
10 Occurrences trouvées, Dernière modification :
regression_lineaire_2013
1 Occurrences trouvées, Dernière modification :
solvents_data_class
1 Occurrences trouvées, Dernière modification :
dictionary_adn_protein
1 Occurrences trouvées, Dernière modification :
polynomes-7-contrib1
2 Occurrences trouvées, Dernière modification :