human
Program for weighted mean of natural numbers . | Returns weighted mean assuming for numbers 1 , 2 , . . n and weights 1 , 2 , . . n.
Driver program to test the function ."
Solution in Python:
 Can you provide a code to program for weighted mean of natural numbers?
assistant
#Here is code to program for weighted mean of natural numbers .
 def weightedMean ( n ) :
	return ( 2 * n + 1 ) / 3
n = 10
print ( int ( weightedMean ( n ) ) )