Liste des activités

SNT:cours de seconde.

Lycée Pyrène: Monsieur David Poutriquet.

Activité automatismes: Instructions if..elif..else.. niveau 1.


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


							x=-2
							y=-2*x+8
							if (y<=-3):
								resultat=5
							elif (y>0):
								resultat=16
							else:
								resultat=-5
								
							print(resultat)
							


Ta réponse :

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


							x=8
							y=-7*x+6
							if (y<=-4):
								resultat=8
							elif (y>2):
								resultat=19
							else:
								resultat=-8
								
							print(resultat)
							


Ta réponse :

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


							x=4
							y=-9*x+5
							if (y<=-3):
								resultat=10
							elif (y>5):
								resultat=19
							else:
								resultat=-10
								
							print(resultat)
							


Ta réponse :

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


							x=8
							y=6*x-9
							if (y<=-2):
								resultat=-5
							elif (y>2):
								resultat=17
							else:
								resultat=5
								
							print(resultat)
							


Ta réponse :

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


							x=2
							y=-5*x-4
							if (y<=-1):
								resultat=-6
							elif (y>5):
								resultat=18
							else:
								resultat=6
								
							print(resultat)
							


Ta réponse :