Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- prenom = "Elysée"
- nom = "Reclus"
- annee_naissance = 1830
- note = 9.5
- # concaténation d'une chaîne de caratères
- print(prenom + " " + nom + ", né en " + str(annee_naissance) + ", a obtenu la note de " + str(note) + "/10.")
- # autre méthode avec la fonction "format"
- print("{pr} {nm}, né en {an}, a obtenu la note de {no}/10.".format(pr=prenom, nm=nom, an=annee_naissance, no=note))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement