"""simple docstring"""



import unittest

from knapsack import greedy_knapsack as kp






class       snake_case__	(    unittest.TestCase    ):


 def 		a__					(      self		):
        __a	      =  [10, 20, 30, 40, 50, 60]
        __a	      =  [2, 4, 6, 8, 10, 12]
        __a	      =  100
        self.assertEqual(kp.calc_profit(_a  ,						_a  ,						_a		)  ,						210		)


 def 		a__					(      self		):
        self.assertRaisesRegex(_a  ,						"max_weight must greater than zero."		)


 def 		a__					(      self		):
        self.assertRaisesRegex(_a  ,						"Weight can not be negative."		)


 def 		a__					(      self		):
        self.assertRaisesRegex(_a  ,						"Profit can not be negative."		)


 def 		a__					(      self		):
        self.assertRaisesRegex(_a  ,						"max_weight must greater than zero."		)






 def 		a__					(      self		):
        self.assertRaisesRegex(
            _a  ,						"The length of profit and weight must be same."		)


if __name__ == "__main__":
   unittest.main()




"""simple docstring"""




def        lowercase							(		lowerCAmelCase__ :     str			) ->      list:
		if n_term == "":
				return []
		__a           =			[]
		for temp in range(int(lowerCAmelCase__			)			):
				series.append(f'''1/{temp + 1}''' if series else '''1'''			)
		return series


if __name__ == "__main__":
				lowercase_			     =  input("Enter the last number (nth term) of the Harmonic Series")
				print("Formula of Harmonic Series => 1+1/2+1/3 ..... 1/n")
				print(harmonic_series(nth_term))






