You are currently viewing a revision titled "lab1 Exercice3 chapter2", saved on May 26, 2013 at 6:14 am by Anne Menmou | |
---|---|
Title | lab1 Exercice3 chapter2 |
Content | Assuming that we execute the following assignment statements:
width=17
height=12.0
delimiter='.'
for each of the following expressions, write the value of the expression and the type (of the value of the expression).
1. width/2=8.5 The type is float (real number)
2. width/2.0 = 8.5 The type is float (real number)
3. height/3=4.0 The type is float (real number)
4. 1+2*5=11 The type is int (integer)
5. delimiter*5 = '.....' The type is str (string) |
Excerpt | |
Footnotes |