English

A list named studentAge stores age of students of a class. Write the Python command to import the required module and (using built-in function) - Computer Science (Python)

Advertisements
Advertisements

Question

A list named studentAge stores age of students of a class. Write the Python command to import the required module and (using built-in function) to display the most common age value from the given list.

Short/Brief Note
Advertisements

Solution

import statistics
print( statistics.mode(studentAge) )
shaalaa.com
  Is there an error in this question or solution?
2023-2024 (March) Board Sample Paper
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×