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


Ta réponse :

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


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


Ta réponse :

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


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


Ta réponse :

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


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


Ta réponse :