{% for s in '12345' %}
    {% if s <= score|stringformat:'d' %}
        *
    {% endif %}
{% endfor %}
