Lab 1

Lab Description:In this lab, I inputted the figures from the book. It calculated them.

Code:

>>> width=17
>>> height=12.0
>>> delimter=’.’
>>>
>>> width/2
8
>>> width/2.0
8.5
>>> height/3
4.0
>>> 1+2*5
11
>>> delimiter*5 #I_am_confused

Traceback (most recent call last):
File “<pyshell#9>”, line 1, in <module>
delimiter*5 #I_am_confused
NameError: name ‘delimiter’ is not defined
>>> delimiter*5

Traceback (most recent call last):
File “<pyshell#10>”, line 1, in <module>
delimiter*5
NameError: name ‘delimiter’ is not defined

Screenshots:

lab one

One thought on “Lab 1

Leave a Reply

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