Open main menu

CDOT Wiki β

Changes

OPS245 Lab 3

No change in size, 17:22, 22 January 2021
m
INVESTIGATION 4: USING LOGICAL STRUCTURES IN PYTHON: - fixing typo
<li>Add a third prompt (immediately after the other two prompts and before the tar command), asking the user if they want the archive to be compressed. You'll need an if statement to run your tar command with gzip compression if they answered yes.</li>
<li>Test your script to make sure it works.</li>
<li>Add a fourth prompt asking the user what type of compression they want (present them with gzip, bzipbzip2, and xz as options). Note that this prompt should only be shown if the user opted for compression (if they don't want compression, there is no point asking what type they don't want).</li>
<li>Expand the if statement around your actual tar command to use whichever type of compression the user asked for.</li>
<li>Test your script to make sure it works.</li>
<li>When you are confident your script works, you are ready to submit the lab.</li>
</ol>
 
= LAB 3 SIGN-OFF (SHOW INSTRUCTOR) =
932
edits