Open main menu

CDOT Wiki β

Changes

OPS245 Lab 3

32 bytes removed, 18:47, 19 September 2021
m
INVESTIGATION 4: USING LOGICAL STRUCTURES IN PYTHON: - removing reference to bash scripting
=INVESTIGATION 4: USING LOGICAL STRUCTURES IN PYTHON=
Now that we have added some powerful logical structures to our python scripts, we can make our scripts much more adaptable. Just like we have done in bash, our Our python scripts can now respond to different situations by executing different code, or repeating the same code several times (e.g. keep asking the user for input until they give us something useful). In this investigation you will write a python script that will prompt a user for a directory to archive, ask them if they want the archive compressed, and (only if they do want compression) what type of compression to apply.
<ol>
932
edits