Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 858 Bytes

checklist.md

File metadata and controls

33 lines (22 loc) · 858 Bytes

Check Your Code Against the Following Points

Code Efficiency

Make sure you check that the input string contains 3 elements separated by space, and has cp on a first place.

Code Style

  1. Use a consistent style of quotes in your code: either double or single, but double quotes are preferred.
  2. Use descriptive and correct variable names.

Good example:

source_file_name = "list_of_workers.txt"
with open(source_file_name, "r") as source_file_object:
    pass

Bad example:

f1 = "list_of_workers.txt"
with open(f1, "r") as f_s:
    pass
  1. Make sure to call each necessary method only once (for example, use .split() a single time).

Clean Code

Add comments, prints, and functions to check your solution when you write your code. Don't forget to delete them when you are ready to commit and push your code.