Write a function display() in Python that counts and displays the number

Write a function display() in Python that counts and displays the number

More to explore

Based on this image's title: “Write a function display() in Python that counts and displays the number