lab 1

Lab Description:

the purpose of this lab was to copy the code from chapter two. Then run that code on python shell, and see the result of each command.

Code:

>>> width = 17
>>> hieght = 12.0
>>> delimiter = ‘.’
>>> width/2
>>> width/2.0
>>> hieght/3
>>> 1 + 2 * 5
>>> delimiter * 5

screen shot:

Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:55:48) [MSC v.1600 32 bit (Intel)] on win32
Type “copyright”, “credits” or “license()” for more information.
>>> width = 17
>>> hieght = 12.0
>>> delimiter = ‘.’
>>> width/2
8.5
>>> width/2.0
8.5
>>> hieght/3
4.0
>>> 1 + 2 * 5
11
>>> delimiter * 5
‘…..’
>>>