13,420
edits
Changes
→LAB REVIEW
:'''Be able to answer any questions about the lab to show that you understood it!'''
= Lab Review LAB REVIEW =
:# xWrite a Python function to input the user for their shoe size, and store the result in a variable called '''shoeSize'''.:# xWrite 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>:# 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+:# xWrite a Python script to print the text '''I love Python''' twenty times (on a separate line).