Changes

Jump to: navigation, search

OPS435 Python Lab 2

22 bytes added, 13:53, 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 '''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?
:# Write Python code to terminate the execution of the running Python script if there not exactly 3 arguments contained after the Python script upon execution.
:# What is the purpose of an '''if-elif-else ''' statement?
:# Write a Python script to prompt the user for a course mark (no error checking is required... you can assume that the input will be a valid mark from 0 to 100). Use an if-elif-else statement to convert the mark to a letter grade. For simplicity, you don't have to worry about D+, C+, B+, or A+
:# Write a Python script to print the text '''I love Python''' twenty times (on a separate line).
13,420
edits

Navigation menu