Lab 1

Lab Description:

This lab’s purpose was to get used to using the python command line and creating scripts for python. Due to having previous experience in programming C++  I had very little problems figuring out how things worked in python.

Code:

screenshot ex2 code

 

Screenshots:

screenshot ex2 part 1screenshot ex2 part 2screenshot ex2 part 3

screenshot ex3

Ex 3

  1. width/2 returns an integer
  2. width/2.0 returns a floating point
  3. height/3 returns a floating point
  4. 1 + 2 * 5 returns an integer
  5. delimiter ‘.’ returns a string

Leave a Reply

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