that would be very confusing to understand for a beginner. PHP you can write <?php echo "Hello world" ?> right in a html file and see it just by refreshing the page.
It is confusing if you don't know the difference between a page templating language and a web framework. If ease of writing "hello world" is what matters, Python:
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
if __name__ == "__main__":