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


Ta réponse :

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


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


Ta réponse :