easiest web development framework python code example

Example 1: python web framework

There are many python web frameworks, and the main ones are:
Flask, Django, we2py, TurboGears, etc.

Choose the one you like the most; they don't matter too much.

Example 2: is python good for web development

Yes, with python, you can web development :)
  
I recommend the django framework: https://www.djangoproject.com/
and Flask: https://flask.palletsprojects.com/

If you want to read more, I can recommend you this article:
https://www.imaginarycloud.com/blog/why-use-python-for-web-development/