Thursday, July 24, 2025

DSA using Python: Assignment - 1: Array and list


 

"In this assignment, we explore how arrays and lists work in Python. These basic structures are essential for handling and organizing data efficiently. Below are five beginner-friendly problems to build a strong foundation."



Assignment - 1: Array and list

### 1️⃣ Sort an Integer Array

1. Given an array with some integer type values. Write a python script to sort array values?

### 2️⃣ Remove Non-Integer Elements
2. Given a list of heterogenous elements. Write a python script to remove all the non int values from the list.

### 3️⃣ Average of List
3. Write a Python script to calculate average of elements of a list.

### 4️⃣ N Prime Numbers
4. Write a Python script to create a list of first N prime numbers.

### 5️⃣ N Terms of Fibonacci Series
5. Write a Python script to create a list of first N terms of a Fibonacci series





"These five Python problems are designed to help beginners practice how to handle lists and arrays. They cover sorting, filtering, average calculations, and generating sequences. Mastering these will help you in solving more complex data structure problems later."


#Python #DSA #PythonList #ArrayVsList #Fibonacci #PrimeNumbers #LearnPython #100DaysOfCode

No comments:

Post a Comment

DSA using Python: Assignment - 2: Classes and Objects

Follow Me “In this assignment, we will learn how to use Python classes and objects to build reusable and structured code. The tasks cover re...