Open main menu

CDOT Wiki β

Changes

OPS435 Python Lab 2

No change in size, 13:59, 7 September 2017
LAB REVIEW
:# Write a Python function to display the shoe size entered from using the value stored in the variable mentioned in the previous question. (For example: '''Your size size is: 16''').
:# What is the purpose of importing special variables from your system?
:# Write a function 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>
:# What is the purpose of using an '''if''' statement?
:# What is the purpose of using an '''if-else''' statement?
13,420
edits