Changes

Jump to: navigation, search

OPS435 Online Lab1

1,001 bytes added, 17:47, 11 May 2020
Investigation 2 - Python on Matrix
= Investigation 2 - Python on Matrix =
The Python Interpreter supports two mode of operations: script mode and interactive mode. In interactive mode, the Python interpreter allows us to run python code one statement at a time. Currently, there are two major versions of the Python interpreter available on matrix.senecacollege.ca: version 2 and version3. To start an interactive Python 2 shell, type "python" at the command prompt. To start an interactive Python 3 shell, type "python3" at the command prompt.
== Task 1 - Setting up Python environment on Matrix for labs and assignments ==
:* Python version
:* Create subdirectories for labs and assignments
== Task 2 - Testing your setup ==
:* Download Checking script from github.com
:* Exploring the sample script
:* Running the sample script
== Task 3 - exploring Python's built-in functions ==
:* print() function
== Task 4 - exploring Python's built-in data objects ==
:* integer object
:* string object
== Task 5 - exploring on how to get Python to do maths ==
:* Math operators
 
=LAB 1 SIGN-OFF Upload the following files individually to Blackboard=
:* gitlog.txt: contains the output of the command "git log" from Task 3
1,760
edits

Navigation menu