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


Ta réponse :

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


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


Ta réponse :

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


							x=0
							y=4*x-2
							if (y<=-5):
								resultat=9
							elif (y>4):
								resultat=20
							else:
								resultat=-9
								
							print(resultat)
							


Ta réponse :

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


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


Ta réponse :

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


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


Ta réponse :