Wednesday, November 19, 2025

✅ BEGINNER LEVEL NumPy Projects

 

INTERMEDIATE LEVEL NumPy Projects


1. Temperature Converter Using NumPy

Description:
Convert a list of Celsius temperatures into Fahrenheit using vectorized operations.

Concepts used: Vectorization, arrays

Code:

import numpy as np celsius = np.array([0, 10, 20, 30, 40]) fahrenheit = (celsius * 9/5) + 32 print("Fahrenheit:", fahrenheit)
Output::-- Fahrenheit: [ 32. 50. 68. 86. 104.]

2. Student Marks Analysis

Description:
Calculate total, average, highest, and lowest marks using NumPy functions.

Concepts: Aggregations (sum, max, min, mean)

Code:

import numpy as np marks = np.array([78, 90, 66, 82, 95]) print("Total:", marks.sum()) print("Average:", marks.mean()) print("Highest:", marks.max()) print("Lowest:", marks.min())

Output::--
Total: 411
Average: 82.2 Highest: 95 Lowest: 66

3. Random Password Generator

Description:
Generate a random numeric password using NumPy's random module.

Concepts: random.randint()

Code:

import numpy as np password = np.random.randint(0, 9, 6) print("Generated Password:", ''.join(map(str, password)))

Output::--Generated Password: 007622

No comments:

Post a Comment

Python Viva Questions

  Basic Python Viva Questions 1. What is Python? Python is a high-level, interpreted, and object-oriented programming language used for w...