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=(-5*a+6)+(9*b+1)
								return resultat
							
							y=maFonction(5,1)
							print(y)
							


Ta réponse :

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


							def maFonction(a,b):
								resultat=(-4*a-5)+(-7*b+6)
								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=(2*a-7)+(9*b+3)
								return resultat
							
							y=maFonction(3,5)
							print(y)
							


Ta réponse :

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


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


Ta réponse :

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


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


Ta réponse :