You can now develop your AWS Lambda functions using Python 3.8. This is the newest major release of the Python language, and contains many new features such as assignment expressions, positional-only arguments, and typing improvements. Lambda functions written in Python 3.8 run on the latest generation of Amazon Linux, Amazon Linux 2. You can read the Python programming model in the AWS Lambda documentation to learn more about writing functions in Python 3.8.
Source:: Amazon AWS