Lab 1

LAB DESCRIPTION:

In Lab 1 #1 we were asked to give values to certain words.  For example we were asked to designate a certain height and width using Python.  The way I did this lab was I directly copied everything that was asked for me to type and input it directly into Python.  Doing this we got answer and eventually we were asked to solve mathematic equations.  All of these were eventually found to be correct using Python.

CODE:

>>> width = 17
>>> height = 12.0
>>> delimiter = ‘.’
>>> width/2
8.5
>>> width/2.0
8.5
>>> height/3
4.0
>>> 1 + 2 * 5
11
>>> delimiter * 5
‘…..’

SCREENSHOT:

Lab 1

Leave a Reply

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