human
Program to print triangular number series till n | Function to find triangular number.
Driver code"
How can the above be solved in Python?
 Can you provide a code to program to print triangular number series till n and the other steps required?
assistant
#Here is code to program to print triangular number series till n and the other steps required.
 def triangular_series ( n ) :
	for i in range ( 1 , n + 1 ) :
		print ( i * ( i + 1 ) // 2 , end = ' ▁ ' )
n = 5
triangular_series ( n )