Skip to content

LanguageisSimple/Python-Assignments

Repository files navigation

Python Assignments

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.

Table of Contents

Introduction

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.

Repository Structure

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.

Assignments

  1. Assignment 1: Converting Floating-Point type number to Integer type number (Directory Link)
  2. Assignment 2: Showcasing the usage of Divide-Equal to Operator (Directory Link)
  3. Assignment 3: Showcasing the usage of Floor Division Assignment Operator (Directory Link)
  4. Assignment 4: Showcasing the usage of Exponentiation Assignment Operator (Directory Link)
  5. Assignment 5: Storing the value of one variable in another variable (Directory Link)
  6. Assignment 6: Finding the square-root of a number using sqrt function of math module (Directory Link)
  7. Assignment 7: Showcasing the usage of Subtraction Assignment Operator (Directory Link)
  8. Assignment 8: Showcasing the usage of Multiplication Assignment Operator (Directory Link)
  9. Assignment 9: Showcasing the usage of Addition Assignment Operator (Directory Link)
  10. Assignment 10: Showcasing the usage of Modulus Assignment Operator (Directory Link)
  11. Assignment 11: Finding the number of vowels in a word (Directory Link)
  12. Assignment 12: Returning the ASCII value of a character (Directory Link)
  13. Assignment 13: Finding the factorial of a number using recursion (Directory Link)
  14. Assignment 14: Counting the occurrence of each word in a text file (Directory Link)
  15. Assignment 15: Returning the count of a specific element from a list of elements (Directory Link)
  16. 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.

How to Use

  1. Clone the Repository:

    git clone https://github.com/your-organization/Python-Assignments.git
    cd Python-Assignments
    
  2. Navigate to an Assignment Directory:

    cd Assignment1
    
  3. Read the Instructions: Open the README.md file in the assignment directory to understand the problem statement and requirements.

  4. Implement Your Solution: Write your code in the assignment.py file.

  5. Test Your Solution: Use the provided test cases in test_assignment.py to validate your solution.

    python test_assignment.py
    

Contributing

We welcome contributions from the community! If you have a new assignment or an improvement to an existing one, please follow these steps:

  1. 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.

  2. Clone Your Fork:

    git clone https://github.com/your-username/Python-Assignments.git
    cd Python-Assignments
    
  3. Create a Branch:

    git checkout -b new-assignment
    
  4. Make Your Changes: Add your assignment files in the appropriate directory structure.

  5. Commit Your Changes:

    git commit -m "Add new assignment on [topic]"
    
  6. Push to Your Fork:

    git push origin new-assignment
    
  7. Create a Pull Request: Go to the original repository and create a pull request to merge your changes.

License

This repository is licensed under the MIT License. See the LICENSE file for more information.

About

Python Assignments for Students

Topics

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages