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=3*a+8
								return resultat
							
							y=maFonction(3)
							print(y)
							


Ta réponse :

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


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


Ta réponse :

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


							def maFonction(a):
								resultat=7*a+6
								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+2
								return resultat
							
							y=maFonction(0)
							print(y)
							


Ta réponse :

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


							def maFonction(a):
								resultat=-8*a-7
								return resultat
							
							y=maFonction(5)
							print(y)
							


Ta réponse :