Make sure you check that the input string contains 3 elements separated by space, and has cp
on a first place.
- Use a consistent style of quotes in your code: either double or single, but double quotes are preferred.
- 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
- Make sure to call each necessary method only once (for example, use
.split()
a single time).
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.