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


Ta réponse :

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


							x=4
							y=-6*x-4
							if (y<=-2):
								resultat=4
							elif (y>0):
								resultat=16
							else:
								resultat=-4
								
							print(resultat)
							


Ta réponse :

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


							x=-8
							y=5*x-6
							if (y<=-1):
								resultat=-8
							elif (y>1):
								resultat=16
							else:
								resultat=8
								
							print(resultat)
							


Ta réponse :

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


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


Ta réponse :

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


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


Ta réponse :