Lab Description: Using python i had to create
Instructions:
Complete Exercise 3 from chapter 2 of the python book, create a new page in your OpenLab portfolio, and post the following:
- Lab description.
- Source code.
- Screenshots of the results.
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).
- width/2 - width DIVIDED by 2
- width/2.0 - width DIVIDED by 2.0
- height/3 - height DIVIDED by 3
- 1 + 2 * 5 - a ADDED to b MULTIPLIED by 5
- delimiter * 5 number MULTIPLIED by 5
1 width/2 = 8.5
2 width/2.0=8.5
3 height/3=4
4 1+2*5=15
5. delimeter *5= x*5
width = 17
height = 12.0
delimeter = ‘.’
div = width/2
print “width /2: “,div
div2 = width/2.0
print “width /2.0: “,div2
heigh = height/3
print “height/3: “,heigh
oper = 1 + 2 * 5
print “operation 1 + 2 * 5: “,oper
deli = delimeter * 5
print “delimeter * 5: “, deli