How do you code a star pattern in Python?

How do you code a star pattern in Python?