Open main menu

CDOT Wiki β

Changes

OPS435 Python Extra Advanced String formatting

113 bytes added, 00:02, 22 November 2017
no edit summary
:'''Perform the Following Steps:'''
:#Start the Launch your Centos VM, open a shell terminal (as a regular user) and start a new ipython3 shellsession:<source>
ipython3
</source>To start, let's use the '''format()''' function on a string, The text '''.format()''' is located at the end of a defined string. The ''format()'' function can contain arguments or parameters within the parenthesis ( ).<br><br>
cd ~/ops435/lab4/
pwd #confirm that you are in the right directory
ls CheckLab4.py || wget matrix.senecac.on.ca/~acoatley-willis/CheckLab4CheckLab4Extras.pypython3 ./CheckLab4CheckLab4Extras.py -f -v lab4e
</source>
::4. Before proceeding, make certain that you identify any and all errors in lab4e.py. When the checking script tells you everything is OK before proceeding to the next step.
<br><br>
 
[[Category:OPS435-Python]]