human
Can you provide a Python code to find the nth hexagonal number given the following:
Write a function to find the nth hexagonal number. Here is a solution in Python:
assistant
#Here is Python code to find the nth hexagonal number.
 def hexagonal_num(n): 
	return n*(2*n - 1)