grams in kg

def kg_to_g(kg):
	return kg*1000

Here is what the above code is Doing:
1. Defining a function named kg_to_g that takes a single argument, kg.
2. The function returns the value of kg multiplied by 1000.
3. Calling the function with the value 2.2, and storing the result in the variable grams.
4. Printing the value of grams.