import sys mot1="J'aime" mot2="Programmer" mot3="avec python" listMots = ["Apprendre", "à", "programmer", "en", "python"] #Assemblage simple print "Mes Mots: "+mot1+' '+mot2+' '+mot3 print "Ma Liste: "+' '.join(listMots) #Assemblage avec paramètres chaine=("Chaîne formatée: %s %s %s "%(mot1,mot2,mot3)) print chaine ########## Ce module affiche ############### # Mes Mots: J'aime Programmer avec python # Ma Liste: Apprendre à programmer en python # Chaîne formatée: J'aime Programmer avec python |
Livres Sur ce Sujet
Apprendre à programmer avec Python 3 Apprenez à programmer en Python Python : Petit guide à l’usage du développeur agile Apprendre à programmer avec Python 3 : Avec plus de 50 pages de corigés d’exercices !