This project focuses on demonstrating various string manipulation methods in Python. The project contains implementation files for string operations, unit tests to verify the implementations, and an entry point script to execute the demonstrations.
The app.py file serves as the main entry point for the project. It imports functions from lab.py to demonstrate different string manipulation methods such as getting the length of a string, accessing characters at specific indices, slicing strings, concatenating strings, repeating strings, and converting strings to uppercase and lowercase.
The lab.py file contains implementations of string manipulation functions. Each function provides instructions and challenges to complete. The goal is to fill in the necessary code to meet the requirements outlined in the comments.
The lab_test.py file contains unit tests for the functions defined in lab.py. It ensures that the implemented functions behave as expected by testing them with various input cases.
- src/
- main/
- app.py
- lab.py
- test/
- lab_test.py
- main/
- Open the
src/main/app.pyfile. - Review the code and ensure that all necessary functions from
lab.pyare imported. - Run the
app.pyfile to see the demonstrations of different string manipulation methods. - Modify the
lab.pyfile to complete the challenges and demonstrations. - Avoid making changes to the test files (
lab_test.py). - Run the test cases (
lab_test.py) to verify the correctness of your implementations.
This project provides hands-on experience with string manipulation methods in Python. By completing the challenges in lab.py and running the test cases, you can enhance your understanding of string operations and improve your Python programming skills.
Happy Coding!