Lab 1 Exercise 2 and 3

Lab 1 Lab 1

Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit (Intel)] on win32
Type “copyright”, “credits” or “license()” for more information.
>>> 5
5
>>> x = 5
>>> x + 1
6
>>>
Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit (Intel)] on win32
Type “copyright”, “credits” or “license()” for more information.
>>>print 5
5
>>>print x = 5
>>>print x + 1
6
>>> Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit (Intel)] on win32
Type “copyright”, “credits” or “license()” for more information.
>>>print 5
5
>>>print x = 5
>>>print x + 1
6
>>>

Assume that we execute the following assignment statements:

width = 17

height = 12.0

delimiter = ‘ . ‘

 

Lab12

 

Leave a Reply

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