Tecadmin published a tutorial about installing Python 3.10 on CentOS/RHEL 8 and Fedora 35/34.
How to Install Python 3.10 on CentOS/RHEL 8 & Fedora 35/34
The Python development team has released the latest version of Python 3.10. This includes more new features, security patches, and many other improvements. This version includes a new feature that is Parenthesized context managers. Using enclosing parentheses for continuation across multiple lines in context managers is now supported. For more details read the complete changelog.