downgrade python 3.8 to 3.7 ubuntu

sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python3.7

Here is what the above code is Doing:
1. Adding the Deadsnakes PPA to your system’s software sources.
2. Updating your system’s software package lists.
3. Installing Python 3.7.