Open main menu

CDOT Wiki β

Changes

OPS435 Python3 Lab 2

181 bytes added, 14:27, 24 January 2020
m
LAB REVIEW
[[Category:rchan]][[Category:OPS435-Python]]
= LAB OBJECTIVES =
python3 ./CheckLab2.py -f -v lab2f
</source>
:::4. Before proceeding, make certain that you identify any and all errors in '''lab2dlab2f.py'''. When the check script tells you everything is '''OK''', you may proceed to the next step.
== PART 3 - Combining WHILE loops with IF statements==
:'''Be able to answer any questions about the lab to show that you understood it!'''
 
:<span style=color:green;font-size:1.5em;">&#x2713;</span> Submit the CheckLab2.py script output and all your Python scrips for this lab via Blackboard by the due date for Lab 2.
= LAB REVIEW =
:# Write a short Python script to ask the user to provide their shoe size at the keyboard, and store the result in an integer object called '''shoeSize'''.
:# Add codes to the previous Python script to display the shoe size entered using the same integer object created. (For example: '''Your size shoe size is: 16''').
:# What is the purpose of importing special module from your system?
:# Write a short Python script to display two arguments from running your Python script.<br>For example if your Python script was called '''myscript.py''' and you issued the command:<br>'''python myscript.py happy afternoon''', you would get the following output:<br><br>The first argument is: happy<br>The second argument is afternoon<br><br>
14
edits