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


Ta réponse :

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


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


Ta réponse :

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


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


Ta réponse :

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


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


Ta réponse :

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


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


Ta réponse :