Open main menu

CDOT Wiki β

Changes

OPS435 Python3 Lab 7

156 bytes added, 20:39, 3 November 2019
Part 1 - Simple Object Class with external functions
</source>
:'''Perform the following steps:'''
:1. [https://ict.senecacollege.ca/~raymond.chan/ops435/labs/lab7/lab7a.py Download ] or create the above Pythone script '''lab7a.py''' in your ~/ops435/lab7 directory. :2. Create [https://ict.senecacollege.ca/~raymond.chan/ops435/labs/lab7/lab7a1.py Download] or create a new Python script named '''lab7a1.py''' in the lab7 directory:<source lang="bash">
cd ~/ops435/lab7
vi ~/ops435/lab7/lab7a1.py
</source>
:3. [Place the following content inside the new python file '''lab7a1.py''' and save it:<source lang="python">
#!/usr/bin/env python3
# Student ID: [seneca_id]
1,760
edits