How do I write this program?
def goingUp(n): # prints the stars from the row with 1 until a row with n
def goingDown(n): # prints the stars from the row with n to the row with 1
If the user enters a negative value, your program should print nothing.
If the user enters 0, your program should print nothing.
If the user enters 1, your program should print a single line with one star.
If the user enters any number greater than 1, your program should print according to the pattern shown above.
The prompt to the user must be Please enter a value