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


Ta réponse :

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


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


Ta réponse :

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


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


Ta réponse :

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


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


Ta réponse :