LAB 1

Lab Description:

This lab was variables, expressions and statements. Values are made up of strings because its easier for the interpreter to identify. You can assign values to variables to represent the variable. I was able to do this because I did some expressions. Also I learned that an expression is the combination of variables and statements so I tried it out using python and it worked.

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
 '.....'

 

SCREENSHOTS:

picture

Leave a Reply

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