Skip to content

This repository contains a Python-based assignment consisting of 35 coding problems, designed to reinforce core concepts of data structures using Python. The problems involve real-world data operations on strings, lists, sets, tuples, and dictionaries.

Notifications You must be signed in to change notification settings

Tanvikanaiya/Data-Structures-in-Python-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

🧠 Data Structures in Python – Practice Assignment

This repository contains a Python-based assignment consisting of 35 coding problems, designed to reinforce core concepts of data structures using Python. The problems involve real-world data operations on strings, lists, sets, tuples, and dictionaries.


📌 Topics Covered

  • ✅ String manipulation
  • ✅ List operations and comprehensions
  • ✅ Set theory operations (union, intersection, difference, symmetric difference)
  • ✅ Tuple handling and slicing
  • ✅ Dictionary operations (including nested structures)
  • ✅ Custom implementations (reverse, sort, merge, count, shuffle)
  • ✅ User input handling

📂 Folder Structure

📁 Data_Structures_Assignment/

├── 📄 README.md

├── 📄 Assigenment_Data_structure_in_python.ipynb


💡 Skills Gained

🧑‍💻 Programming Skills

  • Python basics and advanced usage
  • Data structure manipulation (strings, lists, sets, tuples, dictionaries)
  • Writing custom logic without built-in shortcuts (e.g., reversing, sorting, shuffling)
  • Problem decomposition and algorithmic thinking

📊 Analytical Skills

  • Pattern recognition
  • Frequency analysis
  • Decision making based on structure and content

🖥 Sample Code Snippets

# Count vowels in a string
def is_vowel(s):
    return sum(1 for ch in s if ch.lower() in "aeiou")

# Reverse a list
my_list[::-1]

# Check for palindrome
s == s[::-1]

# Find union of sets
set1.union(set2)

🚀 How to Run

  1. Clone the repository git clone https://github.com/Tanvikanaiya/data-structures-python-assignment.git
  2. Open the notebook file in Google Colab or Jupyter Notebook.
  3. Run each cell to test the outputs.

🙋‍♀️ About Me

I’m Tanvi Kanaiya, a data science enthusiast and Python programmer, currently pursuing B.Tech in Computer Science. This assignment helped sharpen my coding logic and gave me practical exposure to data structure fundamentals using Python.

📧 Email: [email protected]

About

This repository contains a Python-based assignment consisting of 35 coding problems, designed to reinforce core concepts of data structures using Python. The problems involve real-world data operations on strings, lists, sets, tuples, and dictionaries.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published