Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

. All scripts must have the hashbang as their first line with the address /usr/bin/python3 . All scripts must have permissions 755 The filename of

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

. All scripts must have the hashbang as their first line with the address /usr/bin/python3 . All scripts must have permissions 755 The filename of all scripts must have a py extension All scripts must have a comment at the top that briefly describes what the script does This comment must follow the hashbang line Any import statements must follow the script comment All scripts must run on the UMB Unix machines without error If a script opens a file, it must do so in a trylexcept statement * All variable names must be a good description of the values they contain Whenever input is needed from the keyboard, a meaningful prompt must be used All functions must have a comment that describes what the function does The comment must be on the line directly above the function header with no blank line between them The following class methods do not require comments unless they are doing something unusual o Constructors o Mutators o Magic Methods Function names must be a good description of what the function does All function definitions must must appear at the top of the script The code in the function body must contain no blank lines Each function must have a blank line after it The code that runs the functions must appear at the bottom of the page after all functions have been defined There must be a blank line between the last function and the code that runs the function All scripts that take command line arguments must check for the correct number of arguments, and quit after printing a usage message if they do not get the right number of arguments If you use a regular expression, you must create a pattern object using re.compile When compiling a regular expression pattern, always use raw strings For an example of a properly formated script, look here

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Understand chargeback methods and how they are used

Answered: 1 week ago