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=-6
							y=7*x-3
							if (y<=-1):
								resultat=-1
							elif (y>2):
								resultat=19
							else:
								resultat=1
								
							print(resultat)
							


Ta réponse :

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


							x=8
							y=-8*x+9
							if (y<=-5):
								resultat=11
							elif (y>0):
								resultat=17
							else:
								resultat=-11
								
							print(resultat)
							


Ta réponse :

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


							x=-6
							y=7*x-5
							if (y<=-3):
								resultat=-9
							elif (y>3):
								resultat=20
							else:
								resultat=9
								
							print(resultat)
							


Ta réponse :

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


							x=-4
							y=9*x-4
							if (y<=-1):
								resultat=6
							elif (y>1):
								resultat=17
							else:
								resultat=-6
								
							print(resultat)
							


Ta réponse :

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


							x=-3
							y=-x+2
							if (y<=-3):
								resultat=3
							elif (y>5):
								resultat=15
							else:
								resultat=-3
								
							print(resultat)
							


Ta réponse :