human
Give me a code to find the sum of series 0 given the following:
Find the sum of series 0. X + 0. XX + 0. XXX + ... upto k terms | function which return the sum of series.
Driver code"
Solution in Python:
assistant
#Here is code to find the sum of series 0.
 def sumOfSeries ( x , k ) :
	return ( float ( x ) / 81 ) * ( 9 * k - 1 + 10 ** ( ( - 1 ) * k ) )
if __name__ == ' _ _ main _ _ ' :
	x = 9
	k = 20
	print ( sumOfSeries ( x , k ) )