Write Your Python Code:

Output: