Open main menu

CDOT Wiki β

Changes

OPS435 Python Lab 4

4 bytes removed, 22:27, 11 February 2018
PART 1 - Strings and Substrings
:::*The script should contain no errors
::::'''Sample Run 1:'''<source>
run ./lab4c.py
York: {'Country': 'Canada', 'Postal Code': 'M3J3M6', 'Address': '70 The Pond Rd', 'Province': 'ON', 'City': 'Toronto'}
Shared Values {'Canada', 'ON', 'Toronto'}
::*Example: first_three_last_three('abcdefg', '1234567') returns single string 'abc567'
:::'''Sample Run 1'''<source>
run ./lab4d.py
Hello
Senec