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=8*x+1
							if (y<=-1):
								resultat=4
							elif (y>2):
								resultat=16
							else:
								resultat=-4
								
							print(resultat)
							


Ta réponse :

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


							x=1
							y=-5*x-5
							if (y<=-3):
								resultat=-11
							elif (y>1):
								resultat=19
							else:
								resultat=11
								
							print(resultat)
							


Ta réponse :

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


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


Ta réponse :

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


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


Ta réponse :

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


							x=1
							y=-3*x-9
							if (y<=-4):
								resultat=-11
							elif (y>3):
								resultat=19
							else:
								resultat=11
								
							print(resultat)
							


Ta réponse :