educative.io

Educative

Benefits of using url_for

Hello,

In the course " Flask: Develop Web Applications in Python", section “How Do We Serve Static Files?”. I don’t fully understand the benefit of using url_for()

What’s the difference/benefit of

vs just using

I feel the second is even easier to read. What am I missing?