Liste des activités

SNT:cours de seconde.

Lycée Pyrène: Monsieur David Poutriquet.

Activité automatismes: Instructions if..else.. niveau 1.


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


							x=0
							y=-4*x+6
							if (y<=1):
								resultat=10
								print(resultat)
							else:
								resultat=-10
								print(resultat)
							


Ta réponse :

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


							x=4
							y=-7*x-2
							if (y<=0):
								resultat=1
								print(resultat)
							else:
								resultat=-1
								print(resultat)
							


Ta réponse :

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


							x=0
							y=2*x-4
							if (y<=-1):
								resultat=3
								print(resultat)
							else:
								resultat=-3
								print(resultat)
							


Ta réponse :

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


							x=-1
							y=2*x+1
							if (y<=-2):
								resultat=-11
								print(resultat)
							else:
								resultat=11
								print(resultat)
							


Ta réponse :

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


							x=-5
							y=-4*x-8
							if (y<=2):
								resultat=12
								print(resultat)
							else:
								resultat=-12
								print(resultat)
							


Ta réponse :