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 . The filename of all scripts must

image 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 . The filename of all scripts must have apy 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 must have permissions 755 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 Accessors 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

Graph Databases

Authors: Ian Robinson, Jim Webber, Emil Eifrem

1st Edition

1449356265, 978-1449356262

More Books

Students also viewed these Databases questions

Question

Distinguish between filtering and interpreting. (Objective 2)

Answered: 1 week ago