Question

: Write Python code to do statistical analysis (average, min, max, standard deviation) of your marks in 5

08 Aug 2026
Answer :
Word Count : 1065
In a Programming and AI Lab, Python can be used to perform statistical analysis of marks obtained in five subjects. Statistical measures such as average, minimum, maximum, and standard deviation help in understanding the overall academic performance and the variation in marks. Python provides simple built-in functions and libraries that make such calculations easy, accurate, and efficient. Suppose the marks obtained by a student in five subjects are 78, 65, 82, 71, and 90. These values can be stored in a Python list. The `statistics` module can then be used to calculate the average and standard deviation, while the built-in `min()` and `max()` functions can determine the lowest and highest marks. ```python import statistics # Marks obtained in five subjects marks = [78, 65, 82, 71, 90] # Calculate statistical values average = statistics.mean(marks) minimum = min(marks) maximum = max(marks) standard_deviation = statistics.stdev(marks) # Display the results print("Marks:", marks) print("Average:", average) print("Minimum:", minimum) print("Maximum:", maximum) print("Standard Deviation:", standard_deviation) ``` The first statement, `import statistics`, imports Python's standard `statistics` module. This module contains functions for performing common statistical calculations. In the program, the `mean()` and `stdev()` functions are used from this module. The statement `marks = [78, 65, 82, 71, 90]` creates a list containing the student's marks in five subjects. A Python list is useful because it allows multiple values to be stored in a single variable. The values can represent marks in subjects such as Programming, Mathematics, Artificial Intelligence, Database Management, and Computer Networks. The average is calculated using: ```python average = statistics.mean(marks) ``` The `mean()` function adds all the values and divides their sum _________ _____ ________ _________ _______ ___ ____ ______ __________ ________.
_________ _________ _______ _______ _____.
__________ _______ ________ ____ _____.
________ ___ _________ ________ ________ ______.
________ ______ ______ _________ _____ ____ _________ _____ _________ ________ ________.
____ _______ _________ __________ ________ ___ _________ ___.
_______ ____ ________ _______ ______ _____ _________.
___ ___ ____ ___ ___ ______ _______ _____ _______.
______ _________ ___ ______ ________ ____ ______ __________.
_______ ___ __________ _______ _________ _______ ___ _________ ________.
______ __________ _______ _____ ________ _______ ___ _____ ___ __________.
_________ __________ _____ ________ _______ ____ ____ ______ _______.
___ _____ ______ ___ _______.
____ ___ __________ __________ __________.
_________ _________ ________ ___ ________ ____ _______ ___ ____ ______ _______ _____.
_______ _________ _________ ________ ___ _______ ________ _________ _________ ______ _____ ____.
______ ___ _______ _______ _________ ____ ________ ____ _______ ___ _____.
_____ ______ __________ _________ ____ _________ ____ ________ __________.
_______ _________ ______ __________ ________ _________ ________.
__________ _________ _______ ______ ___ ______ __________.
_____ __________ _____ __________ _______ _____.
____ ______ _______ _____ ____.
________ _____ __________ _____ ______ _____.
_____ ________ ___ _______ _______.
___ _________ _______ ______ ____ _______ ____ __________.
_________ ______ _________ ______ ______ _____.
___ _________ ______ ________ ________ ________ __________ ________ ______.
_________ __________ ___ _____ _____.
________ _____ ___ ____ __________ _________ _____ ________.
___ ______ _______ ____ __________.
_______ ______ ______ ____ _____ ____ __________.
_______ ____ ____ ______ _________ ______ _____ _________.
_________ _________ ___ ____ __________ ____ ______ __________ ______ _______.
____ ___ _______ ______ _______ ______ _________.
___ _________ ___ ________ _____ _____ _____ _______ ______.
________ __________ _________ ______ _________ _________ ___ _________.
_________ _______ _____ ___ _____.
__________ ______ _________ ___ ________.
________ __________ ___ ______ ________ ________ _________ ________ ______ __________ ___.
______ __________ __________ ____ _____ _____ __________.
___ __________ ________ ________ ________ _______ ____ ________ ____ ____ _________ ___.
___ ____ ____ ________ _____ _____ ______ _________ __________.
__________ __________ ______ __________ ________ _______ ____ ___.
_________ ____ ____ ___ _________ _____.
_________ ____ ________ _________ ______ __________ ________ ______ ________.
____ ______ _____ _____ ________.
_________ __________ ______ ______ _________ _____ _________.
________ _____ _______ _________ ___ ______ ______ ________ ________.
_____ _____ ________ ______ __________ ____ _____ ________ ______ __________.
_____ _____ ________ _________ ____ __________ _________ _________ ____ _______ ________.
_________ _________ _____ ________ ___ _______ ____ ____ ________ __________.
__________ ________ __________ ____ ___ ____ ____ ____ ___.
________ ______ _________ ________ __________ _________ ______ ______ ______ _________ ______.
____ ___ ____ ___ ________ __________ ______.
____ _________ _______ _______ _______ ______ __________ ______ _________ _______.
______ ___ _______ ______ ___ ____ ______ ________.
_____ ___ _____ ______ _______ _________ ___ _____ ________ ________ _________.
____ __________ ______ ________ _____ __________ __________.
__________ ________ __________ ________ _____ ____ ________ ________.
__________ ___ ___ ___ ________ ____.
____ _________ ______ ____ ________.
____ ________ ___ __________ ___ ______ _____ _________ __________.
_________ __________ ______ ______ _______.
_______ ____ _____ ______ ___ _________ ___ __________.
___ ______ ____ _________ _______ _____ __________ _____ _____ _________ ____ __________.
_______ ______ ____ ____ _____ ___ ______ ____ _______ __________ ____ ______.
___ _________ ______ ___ _____.
_________ ____ ________ ___ _________.
____ _________ _____ _____ ______ ________ ____ ________.
_________ _________ __________ _____ _____ _______ __________ _______.
______ ____ _______ ________ _________ ______ ______.
_____ _______ ________ ________ _____ __________ __________ ________ ________ ______ _______ __________.
___ ______ __________ ________ ___ __________ ____ ______ __________ ________ ___ _____.
___ ____ ______ _____ ________.
__________ ____ ___ ______ _______ ____.
_____ ____ _____ ___ ______ ______ _____ _____ ______ ___ ____ _________.
__________ ___ ________ ______ ___ ________ _____ _________ ____.
_________ __________ ______ __________ ____.
______ _______ _______ ____ __________ ____ ____.
____ ___ ______ _____ __________ ___ _________ ________ _________ ______ _____ ___.
_____ _________ _______ _________ ____.
_______ ________ __________ _______ ________ __________ _____.
_____ ________ ______ _______ ____ ________ ________ _____ _______ __________ _______.
____ _____ _______ _____ ______ ___ ___ ______ _____ ______ ____.
________ ____ __________ ____ ________.
_______ __________ ___ ____ _______ ____ ___ _______ __________.
___ ____ ____ _________ _____.
_____ _______ _____ __________ ___ ________ _________ _______ ______ __________ ______.
_____ _____ _____ _____ ________.
__________ ____ __________ ___ _____ ___ ___ _______ ____ __________ ___.
___ ______ __________ ____ _____ _________ _______ _______ _________ ______ ___ _____.
__________ _____ ______ ___ __________ ________ _____ _________ ___ _________.
______ __________ ____ __________ _________ _________ _________ ________ ______ __________ ____.
_______ _______ _________ _______ _______ _____ ____ ___ _____.
_____ ___ _____ _________ ___ ______ _____.
_______ ____ ______ _______ _________ ___.
______ ______ ___ ___ ___ __________ ____ ______ ______ _________ ____.
____ _____ ________ ___ ____.
___ _________ ________ _____ __________ ______.
Get Full Answer on WhatsApp
IGNOU NEWS
Assignment Submission Last Date Extended Till 30 June 2026 Click Here★★★IGNOU June 2026 TEE Date Sheet Released Click Here★★★
Top
📞
Call Support Instant phone assistance : Write Python code to do statistical analysis (average, min, max, sta
→
🟢
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→