Lab#1

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)

Leave a reply

Logged in as . Log out?

Your email address will not be published. Required fields are marked *