Changes

Jump to: navigation, search

OPS435 Python3 Lab 4

124 bytes added, 22:54, 26 September 2019
no edit summary
= Under Construction and Review, DO NOT USE!=
= OBJECTIVES =
cd ~/ops435/lab4/
pwd #confirm that you are in the right directory
ls CheckLab4.py || wget matrix.senecachttps://ict.onsenecacollege.ca/~acoatley-willisraymond.chan/ops435/labs/LabCheckScripts/CheckLab4.py
python3 ./CheckLab4.py -f -v lab4b
</source>
cd ~/ops435/lab4/
pwd #confirm that you are in the right directory
ls CheckLab4.py || wget https://rawict.githubusercontentsenecacollege.comca/Seneca-CDOT~raymond.chan/ops435/masterlabs/LabCheckScripts/CheckLab4.py
python3 ./CheckLab4.py -f -v lab4c
</source>
cd ~/ops435/lab4/
pwd #confirm that you are in the right directory
ls CheckLab4.py || wget https://rawict.githubusercontentsenecacollege.comca/Seneca-CDOT~raymond.chan/ops435/masterlabs/LabCheckScripts/CheckLab4.py
python3 ./CheckLab4.py -f -v lab4d
</source>
# Write Python commands to display for a dictionary called '''my_dictionary''' the dictionary key called '''my_key''' and a dictionary value for that key?
# What is the purpose for the '''range()''', '''len()''', '''append()''', and '''map()''' functions for a dictionary?
# List and briefly explain the following functions (string methods) that can be used with strings:<br>'''lower()''' , '''upper()''' , '''swapcase()''' , '''title()''' , '''captilize()''' , '''split()'''
# Assume you issued the following command in your ipython3 shell:<br>'''course_name = 'Programming with Python''''<br>What will be the output for each of the following Python commands?<ol type="a"><li>'''course_name[3:11]'''</li><li>'''course_name[10:]'''</li><li>'''course_name[-1]</li></ol>
# Create a string object '''text = 'Seneca''' in the Python Interactive shell and study the string methods: '''text.find()''', '''text.count()''' using the built-in help() function.
[[Category:OPS435-Python]][[Category:rchan]]
1,760
edits

Navigation menu