Liste des activités

SNT:cours de seconde.

Lycée Pyrène: Monsieur David Poutriquet.

Activité automatismes: Les fonctions en Python niveau 1.


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


							def maFonction(a):
								resultat=7*a-9
								return resultat
							
							y=maFonction(-1)
							print(y)
							


Ta réponse :

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


							def maFonction(a):
								resultat=-6*a-3
								return resultat
							
							y=maFonction(0)
							print(y)
							


Ta réponse :

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


							def maFonction(a):
								resultat=5*a-9
								return resultat
							
							y=maFonction(-4)
							print(y)
							


Ta réponse :

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


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


Ta réponse :

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


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


Ta réponse :