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=-1
							y=5*x-7
							if (y<=0):
								resultat=9
								print(resultat)
							else:
								resultat=-9
								print(resultat)
							


Ta réponse :

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


							x=-8
							y=6*x+7
							if (y<=2):
								resultat=2
								print(resultat)
							else:
								resultat=-2
								print(resultat)
							


Ta réponse :

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


							x=-5
							y=4*x-8
							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=4
							y=8*x-9
							if (y<=-4):
								resultat=2
								print(resultat)
							else:
								resultat=-2
								print(resultat)
							


Ta réponse :

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


							x=6
							y=-2*x+9
							if (y<=5):
								resultat=10
								print(resultat)
							else:
								resultat=-10
								print(resultat)
							


Ta réponse :