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=7
							y=-7*x+6
							if (y<=3):
								resultat=-11
								print(resultat)
							else:
								resultat=11
								print(resultat)
							


Ta réponse :

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


							x=5
							y=-x-2
							if (y<=-5):
								resultat=-2
								print(resultat)
							else:
								resultat=2
								print(resultat)
							


Ta réponse :

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


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


Ta réponse :

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


							x=-3
							y=3*x-4
							if (y<=-4):
								resultat=6
								print(resultat)
							else:
								resultat=-6
								print(resultat)
							


Ta réponse :

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


							x=-6
							y=3*x-5
							if (y<=3):
								resultat=1
								print(resultat)
							else:
								resultat=-1
								print(resultat)
							


Ta réponse :