Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
Python 2 is EOL.
As of January 1st, 2020 no new bug reports, fixes, or changes will be made to Python 2, and Python 2 is no longer supported. A few changes were made between when we released Python 2.7. 17 (on October 19th, 2019) and January 1st.
Current Azure App service, Install Python 3.6 or higher.
----------
Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.