Liste des activités

SNT:cours de seconde.

Lycée Pyrène: Monsieur David Poutriquet.

Activité automatismes: Les fonctions avec plusieurs variables en Python niveau 1.


Voici, un algorithme en Python , qu'affiche cet algorithme?


							def maFonction(a,b):
								resultat=(3*a+1)+(8*b-1)
								return resultat
							
							y=maFonction(2,1)
							print(y)
							


Ta réponse :

Voici, un algorithme en Python , qu'affiche cet algorithme?


							def maFonction(a,b):
								resultat=(a+1)+(-8*b-6)
								return resultat
							
							y=maFonction(0,1)
							print(y)
							


Ta réponse :

Voici, un algorithme en Python , qu'affiche cet algorithme?


							def maFonction(a,b):
								resultat=(4*a-2)+(-3*b+1)
								return resultat
							
							y=maFonction(-1,0)
							print(y)
							


Ta réponse :

Voici, un algorithme en Python , qu'affiche cet algorithme?


							def maFonction(a,b):
								resultat=(9*a-6)+(-3*b+3)
								return resultat
							
							y=maFonction(4,-2)
							print(y)
							


Ta réponse :

Voici, un algorithme en Python , qu'affiche cet algorithme?


							def maFonction(a,b):
								resultat=(3*a-7)+(-9*b-3)
								return resultat
							
							y=maFonction(-4,1)
							print(y)
							


Ta réponse :