diff --git a/labs/dicts/morsecodepalindromes/README.md b/labs/dicts/morsecodepalindromes/README.md index 7f8c90e..ed8fe81 100644 --- a/labs/dicts/morsecodepalindromes/README.md +++ b/labs/dicts/morsecodepalindromes/README.md @@ -7,8 +7,8 @@ Write a Python program to solve the Kattis problem Morse Code Palindrome: [https ## Lab Instructions 1. Open your CS0Lab-... repo in VS Code -2. Create a lab folder **morsecodepalindromes** inside your CS0Lab-... repository -3. Inside the lab folder, create two files provided in the lab folder. +2. Create a lab folder **dicts** inside your CS0Lab-... repository +3. Inside the lab folder, create two files morsecode.py and test_morsecode.py. 4. Type the partial code stub provided and fix all FIXMEs. (80 points) 5. Follow best programming practices by using proper white spaces, comments, etc. diff --git a/labs/fileio/README.md b/labs/fileio/README.md index 8aa0b5f..b89d585 100644 --- a/labs/fileio/README.md +++ b/labs/fileio/README.md @@ -8,9 +8,9 @@ Python lab to explore working with files. 1. Open your CS0Lab-... repo in VS Code 2. Create a lab folder **fileio** inside your CS0Lab-... repository -3. Inside the lab folder, create three files: main.py, test_main.py, and data.in +3. Inside the lab folder, create three files: file_io.py, test_file_io.py, and data.in - Copy data.in contents into data.in file. -4. Type the partial code stub provided in main.py and test_main.py files and fix all FIXMEs. (80 points) +4. Type the partial code stub provided and fix all FIXMEs. (80 points) 5. Follow best programming practices by using proper white spaces, comments, etc. 6. Unittest all the important functions using pytest. Install pytest if required. diff --git a/labs/fileio/main.py b/labs/fileio/file_io.py similarity index 100% rename from labs/fileio/main.py rename to labs/fileio/file_io.py diff --git a/labs/fileio/test_main.py b/labs/fileio/test_file_io.py similarity index 66% rename from labs/fileio/test_main.py rename to labs/fileio/test_file_io.py index 81c0db8..9f155a2 100644 --- a/labs/fileio/test_main.py +++ b/labs/fileio/test_file_io.py @@ -1,9 +1,9 @@ -import main +import labs.fileio.file_io as file_io def test_sort_ascending(): my_nums = [10, 9, 0. - 6] - main.sortListInAscendingOrder(my_nums) + file_io.sortListInAscendingOrder(my_nums) assert (my_nums == [-6, 0, 9, 10]) # add 3 more test cases @@ -11,7 +11,7 @@ def test_sort_ascending(): def test_sort_descending(): my_nums = [0, -10, -1, 5, 100] - main.sortListInDescendingOrder(my_nums) + file_io.sortListInDescendingOrder(my_nums) my_nums == [100, 5, 0, -1, -10] # add 3 more test cases diff --git a/labs/lists/pet/README.md b/labs/lists/pet/README.md index f307a6c..80fde63 100644 --- a/labs/lists/pet/README.md +++ b/labs/lists/pet/README.md @@ -1,4 +1,4 @@ -# CS0 Lab - List and Unit testing +# CS0 Lab - Lists and Unit testing Possible Points: 100 @@ -8,7 +8,7 @@ Write a Python program to solve the Kattis problem called pet: [https://open.kat 1. Open your CS0Lab-... repo in VS Code 2. Create lab folder **lists** inside your CS0Lab-... repository -3. Inside the pet folder, create two files: pet.py and test_pet.py +3. Inside the lab folder, create two files: pet.py and test_pet.py 4. Type the partial code stub provided in the lab folder and fix all FIXMEs. (80 points) 5. Follow best programming practices by using proper white spaces, comments, etc.