human
Number of triangles formed by joining vertices of n | Function to find the number of triangles.
print the number of triangles.
.
Driver code initialize the number of sides of a polygon"
How can the above be solved in Python?

=====
Can you provide a code to number of triangles formed by joining vertices of n and the other steps required?
assistant
#Here is code to number of triangles formed by joining vertices of n and the other steps required.
 def findTriangles ( n ) :
	num = n * ( n - 4 )
	print ( num )
/ * Driver code * /
n = 6
findTriangles ( n )