|
Informatique -
Python
|
|
Écrit par Arnaud Kientz
|
|
Page 2 sur 5
Entrée / Sortie
Pour tout ce paragraphe on a a = 2 et b = 3.
-
Que va afficher la commande print a, b ?
-
-
2, 3
-
2 3
-
2 3
-
a, b
-
a b
-
a b
-
L'affichage suivant est-il correct ?
print 'Voici', 'un', 'texte'
-
L'affichage suivant est-il correct ?
print 'Voici un texte\n'
-
Que va afficher la commande print a * b ? La commande print a ** b ? La commande print a < b ?
-
Comment afficher le texte « C'est un texte d'aujourd'hui. » ?
-
Que va afficher le code suivant ?
blabla = raw_input('Entrez un truc')
print type(blabla)
-
Trouver l'erreur dans le code suivant et proposer deux solutions :
nombre = raw_input('Entrez un nombre') print nombre + 2
-
Que va afficher le programme suivant ?
a = input("Entrez un nombre :\n") b = 15 c = 25 d = 27 print c / 5 a = a – a c = c + 1 d = d – c b = 2 * b print d – 1, b % 4, a + 1 print c * 10, b * 3 + d * 10
|
|
Mise à jour le Dimanche, 11 Octobre 2009 12:37 |