Welcome to the "Python Assignments" repository! This repository is designed to serve as a collection of common Python assignments aimed at helping individuals improve their coding skills and understanding of Python.
This repository contains a variety of Python assignments that cover different aspects of the language. These assignments are suitable for beginners to intermediate learners who wish to enhance their problem-solving abilities and gain practical experience with Python.
The repository is organized as follows:
Python-Assignments/
├── Assignment 1/
│ ├── Readme.md
│ ├── Assignment 1.py
│ ├── Question.png
├── Assignment 2/
│ ├── Readme.md
│ ├── Assignment 2.py
│ ├── Question.png
└── ...
Each assignment is contained within its own directory and includes:
Readme.md
: A description of the assignment and any specific instructions.Assignment.py
: The main assignment file where the solution to the problem statement is provided.Question.png
: The Question of the Assignment is provided.
- Assignment 1: Converting Floating-Point type number to Integer type number (Directory Link)
- Assignment 2: Showcasing the usage of Divide-Equal to Operator (Directory Link)
- Assignment 3: Showcasing the usage of Floor Division Assignment Operator (Directory Link)
- Assignment 4: Showcasing the usage of Exponentiation Assignment Operator (Directory Link)
- Assignment 5: Storing the value of one variable in another variable (Directory Link)
- Assignment 6: Finding the square-root of a number using
sqrt
function ofmath
module (Directory Link) - Assignment 7: Showcasing the usage of Subtraction Assignment Operator (Directory Link)
- Assignment 8: Showcasing the usage of Multiplication Assignment Operator (Directory Link)
- Assignment 9: Showcasing the usage of Addition Assignment Operator (Directory Link)
- Assignment 10: Showcasing the usage of Modulus Assignment Operator (Directory Link)
- Assignment 11: Finding the number of vowels in a word (Directory Link)
- Assignment 12: Returning the ASCII value of a character (Directory Link)
- Assignment 13: Finding the factorial of a number using recursion (Directory Link)
- Assignment 14: Counting the occurrence of each word in a text file (Directory Link)
- Assignment 15: Returning the count of a specific element from a list of elements (Directory Link)
- Assignment 16: Reversing a string input using slicing and iteration (Directory Link)
Each assignment is designed to focus on specific concepts and techniques in Python. Please refer to the individual Readme.md
files within each assignment directory for detailed instructions.
-
Clone the Repository:
git clone https://github.com/your-organization/Python-Assignments.git cd Python-Assignments
-
Navigate to an Assignment Directory:
cd Assignment1
-
Read the Instructions: Open the
README.md
file in the assignment directory to understand the problem statement and requirements. -
Implement Your Solution: Write your code in the
assignment.py
file. -
Test Your Solution: Use the provided test cases in
test_assignment.py
to validate your solution.python test_assignment.py
We welcome contributions from the community! If you have a new assignment or an improvement to an existing one, please follow these steps:
-
Fork the Repository: Click the "Fork" button on the top right of this page to create a copy of this repository in your GitHub account.
-
Clone Your Fork:
git clone https://github.com/your-username/Python-Assignments.git cd Python-Assignments
-
Create a Branch:
git checkout -b new-assignment
-
Make Your Changes: Add your assignment files in the appropriate directory structure.
-
Commit Your Changes:
git commit -m "Add new assignment on [topic]"
-
Push to Your Fork:
git push origin new-assignment
-
Create a Pull Request: Go to the original repository and create a pull request to merge your changes.
This repository is licensed under the MIT License. See the LICENSE file for more information.