Lab 1

Lab Description:

This is Lab 1 and I utilized the program call Python 2.6.6, which is a programming language. I used the tool call Idle to type expressions, statements or variables in the Python shell, which is where you type and if you want to check your results you go to the Python interpreter where you type a code and run it to get the results in the Python shell. First, what I did in this Lab was to type the exercise 3 from Chapter 2 in the Python shell and resolve it. Next, in order to check my answers I used the Python interpreter to create the code and run it to see the results. Finally, I compare the results and they are the same, meaning that they are correct.


#checking the answers
width = 17 
height= 12.0 
delimiter = '.' 
print width/2 
print width/2.0 
print height/3 
print 1 + 2 * 5 
print delimiter * 5


Screen Shot 2013-09-29 at 4.46.12 PM Screen Shot 2013-09-29 at 4.49.49 PM

Leave a Reply

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