I would like to create a program that will input the enter size to the user and then enter type of individual triangle to select whether it is empty or no_empty, output 1 to 4 if empty and output 5 to 8 if no_empty.
My code is now this.
tri = int(input("enter size : "))
empthy = input("type of rectangle triangle : " )
choice = int(input("Choose the triangle you want to draw.\n1. triangle1 \n2. triangle2 \n3. triangle3 \n4. triangle4 \n5. triangle5 \n6. triangle6 \n7. triangle7 \n8. triangle8\n== >"))
print_triangle(tri, empthy, choice)
But an example of the code that I want to make,
enter size: 10
type of rectangle triangle : empthy
Choose the triangle you want to draw n1. triangle1 \n2. triangle2 \n3. triangle3 \n4. triangle4
or
enter size: 10
type of rectangle triangle : no_empthy
Choose the triangle you want to draw n5. triangle5 \n6. triangle6 \n7. triangle7 \n8. triangle8
My problem is If you select no_empty in ("type of vertical triangle"), it will output everything from 1 to 8.