Recherche
Voici les résultats de votre recherche.
Pages trouvées :
Résultats plein texte:
- notions_fondamentales @teaching:progappchim
- 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. *
- stackexchange-chimie
- 44/can-an-atom-have-more-than-8-valence-electrons-if-not-why-is-8-the-limit|Can an atom have more than 8 valence electrons? If not, why is 8 the limit ?]] * [[http://chemistr... tackexchange.com/questions/6751/how-does-one-tell-if-a-specific-molecule-is-acidic-or-basic|How does one tell if a specific molecule is acidic or basic?]] * [[h
- representation_molecules_2013 @teaching:progappchim
- ' intag = [False] def chk(c): if intag[0]: intag[0] = (c != '>') ... return True return ''.join(c for c in s if chk(c)) def find_words(text, search): ''' Se... /stackoverflow.com/questions/5319922/python-check-if-word-is-in-a-string ''' dText = {} dS... : for search_word in dSearch: if hash(search_word) == hash(text_word):
- 5_conceptions_erronees_courantes_sur_l_apprentissage
- fit from quite different types of instruction]]. If you ask a history student to read a source docume... e cues. ===== 2. You understand concepts better if you discover them for yourself ===== I recently ... imminent. Do I now understand toilets better than if a plumber had been alongside me, explaining exact... a-cognition is a short-cut to expertise ===== So if simply imitating the behaviour of an expert will
- calcul_matriciel_2012 @teaching:progappchim
- Rep=[] for i in range(Mlin): if i!=m: for j in range(Mlin): if j!=n: result.append... " retourne le déterminat de la matrice A" if len(A)==1: return A[0][0] else:... rime 1ere ligne et colonne de A if j%2==0: #(-1)^(i+j) * Det("matrice où on retire 1
- algos_entiers @teaching:progappchim
- (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://
- game_of_life_conway-2012 @teaching:progappchim
- 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"] = "
- pavage_penrose_2013 @teaching:progappchim
- = [] for color, A, B, C in triangles: if color == 0: # Subdiviser des petits t... tourne cet entier""" split = s.split(" ") if len(split) == 2: a = convert_to_positive_... b = convert_to_positive_int(split[1]) if a != None and b != None: return (a, b... haine s est un entier, retourne cet entier""" if s.isdigit() and long(s) > 0: return l
- desinformations
- ple are not informed; how can you have an opinion if you are not informed? If everybody always lies to you, the consequence is not that you believe the li... he remaining uncertainty regarding causation and, if indeed causal mechanisms are at play, the very sm... ://www.sciencealert.com/we-literally-have-no-idea-if-microplastics-in-our-water-is-bad-for-our-health|
- suite_de_fibonacci-3 @teaching:progappchim
- ndice n de la suite de Fibonacci """ ... if __name__ == '__main__': # le programme "princ... Le rôle de la structure conditionnelle **<nowiki>if __name__ == '__main__':</nowiki>** est de n'exécu... la suite de Fibonacci """ a, b = 0, 1 if n == 0: return a elif n == 1: ... range(1,n): a, b = b, a + b return b if __name__ == '__main__': i = int(input("Suite
- courbe_predominance_acide_2013 @teaching:progappchim
- ser (valeur 0) pH = 0. #pH de départ if n==3: Ka1=10**(-pKa1) Ka2=10**(-p... ra le champs ou l'on donnera le pKa1 if n > 1 : #paramètre demander si la m... e champs ou l'on donnera le pKa2 if n == 3 : #paramètre demander si la ... .get()) pKa2 = 0 pKa3 = 0 if n > 1: pKa2 = float (champ2.get())
- presentation_principes @teaching:progappchim
- 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
- solubilite_ph_t @teaching:progappchim
- été mise pour permettre au programme de continuer if ka3 ==0: precipites[p].pop() #la valeur 0 pos... divise par les ka, On la retire donc de la liste if ka2 ==0: precipites[p].pop() #idem if ka1 ==0: precipites[p].pop() #idem a = float (pr... (G/R)*((1/T)-(1/Ti))) #Relation de Van't Hof if len(precipites[p]) == 5: #si la longueur de la l
- suite_de_fibonacci-4 @teaching:progappchim
- t d'indice n de la suite de Fibonacci """ if n == 0: return 0 elif n == 1: ... tem_recursive(n-1)+fibonacci_item_recursive(n-2) if __name__ == '__main__': i = input("Suite de F... def fibo2(n): """Renvoie F_{n-1}, F_n""" if n == 0: # cas de base return 1, 0 # F_{... f2_k = f_k**2 # F_k^2 if n%2 == 0: # n pair return f2_k + f_k
- tris @teaching:progappchim
- 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