Assignment 1 On Python Programming
Assignment 1 On Python Programming
1. Identify the Chapter: First, make sure you know which chapter is assigned to you
from the "Core Python Programming by Dr. R. Nageswara Rao" book.
2. Extract Code from the Chapter: Go through the chapter and identify all the code
snippets provided. These could include example programs, exercises, or any other
Python code.
3. Follow Chapter Numbering Convention: Ensure that each program follows the
correct naming convention, likely based on the chapter and program number.
4. Create Separate .py Files: For each code snippet, create a separate Python file with
a name that follows the convention you identified. For example, if you are assigned
Chapter 2 and the first program is about "Hello World," your file might be named
chapter2_program1.py.
5. Commenting: Include comments in each file to describe what the program does and
any important details. This will help in understanding the code later.
6. Submission Format: Once you have created all the necessary .py files, ensure they
are named correctly and organized in a way that meets the submission requirements.
Example Structure
If you are working on Chapter 2, your file structure might look like this:
Chapter2/
├── chapter2_program1.py
├── chapter2_program2.py
└── chapter2_program3.py
def main():
print("Hello, World!")
if __name__ == "__main__":
main()
Additional Notes
Testing: Run each .py file to ensure it works as expected before submitting.
Documentation: If required, you might include a README file in your submission
folder that briefly explains the purpose of each program.
Submission
Ensure that you submit your softcopy by the due date, 31/08/2024, as specified.