-- Learn More Than Just Technology!
Python statistics.stdev() Method
This article is part of the Python3 Tutorial.
Table of Contents
- Python3 Advanced Tutorials
- Python3 Regular Expressions
- Python3 CGI Programming
- Python3 MySQL (mysql-connector)
- Python3 MySQL (PyMySQL)
- Python3 Network Programming
- Python3 SMTP Send Email
- Python3 Multithreading
- Python3 XML Parsing
- Python3 JSON
- Python3 Date and Time
- Python3 Built-in Functions
- Python3 MongoDB
- Python3 urllib
- Python uWSGI Installation Configuration
- Python3 pip
- Python3 operator
- Python3 math
- Python3 requests
- Python3 random
- Python3 OpenAI
- Python3 Useful Resources
- Python3 AI Drawing
- Python3 Statistics
- Python3 hashlib
- Python3 Quantitative Analysis
- Python3 pyecharts
- Python3 Selenium Library
Python3 Statistics Module
The statistics module in Python provides functions for calculating mathematical statistics of numerical data.
stdev() Function
The stdev() function calculates the standard deviation of a sample.
import statistics
data = [1, 2, 3, 4, 5]
std_dev = statistics.stdev(data)
print(std_dev)
The output will be:
1.4142135623730951
YouTip