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


Ta réponse :

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


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


Ta réponse :

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


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


Ta réponse :

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


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


Ta réponse :

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


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


Ta réponse :