Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please check if I have any follow up question after you answer this question, thank you If you fail to follow the rules below for

please check if I have any follow up question after you answer this question, thank you

image text in transcribedimage text in transcribedimage text in transcribed

If you fail to follow the rules below for homework scripts, you will lose points . 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 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 If you fail to follow the rules below for homework scripts, you will lose points . 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 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

Step: 3

blur-text-image

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

Introduction To Database And Knowledge Base Systems

Authors: S Krishna

1st Edition

9810206208, 978-9810206208

More Books

Students also viewed these Databases questions

Question

9. Explain the relationship between identity and communication.

Answered: 1 week ago

Question

a. How do you think these stereotypes developed?

Answered: 1 week ago

Question

a. How many different groups were represented?

Answered: 1 week ago