human
Sum of first n odd numbers in O ( 1 ) Complexity | Returns the sum of first n odd numbers.
Driver Code"
How can the above be solved in Python?
assistant
#Here is code to sum of first n odd numbers in O ( 1 ) Complexity and the other steps required.
 def oddSum ( n ) :
	return ( n * n ) ;
n = 20
print ( " ▁ Sum ▁ of ▁ first " , n , " Odd ▁ Numbers ▁ is : ▁ " , oddSum ( n ) )