Ok, I know this is super basic, and I probably should know what i'm doing here, but I'm stuck trying to flip this dang triangle. I keep getting confused with which variable I need to swap. This triangle starts with a single star and iterates down to form a full triangle. I need it to start big and work down to a single star. Somewhat like a funnel. Please and thank you, and please again.
Here's the code:
def up_arrow(arrow):
char = arrow
index = 0
size = 6
while index < size:
spaces = " " * (6 - index)
print(spaces + char)
char += arrow * 2
index += 1