![](//s1.studylibfr.com/store/data-gzf/5159879d608500b133ce1fab82a3be37/1/002107801.htmlex.zip/bg5.jpg)
=',&+!,$$
,$$$!M(&
9+"',!''!'&!!',&+!,$$'!
3'!&+!''&! &!!++-+'!
+"''!+')"P+!'"*'-
6(!+'!+"'!'&=!',&+!,$$-
&='"*''-
Attention : ne pas confondre l'opérateur d'affectation = avec le symbole
d'égalité mathématique. L'affectation n'est ni une équation mathéma
tique, ni une égalité mathématique !
&&'&'"!',!!)+(&'+'*'-
Tableau 5 : opérateur d'affectation =
& )'''"*'Y
H'''!+'
+'!',+"'!'
&!Y#)' &
!++'Y
age = 20
age = 30
prenom = "Perceval"
taille_m = 1.75
taille_cm = 100*taille_m
age = age + 3
phrase1 ="bonjour "+ prenom
phrase1 = phrase1 + " !"
phrase2 = prenom +" a "
+str(age)+" ans."
$$='!,"*'!',&+& ='$$!&'(!
"*'-&'"(&'+
& )''"''"*'YX((
age
info - TP1 page 5