{"id":7082,"date":"2021-05-25T12:20:44","date_gmt":"2021-05-25T06:50:44","guid":{"rendered":"https:\/\/python-programs.com\/?p=7082"},"modified":"2021-11-22T18:38:42","modified_gmt":"2021-11-22T13:08:42","slug":"python-program-to-return-multiple-values-from-a-function","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-to-return-multiple-values-from-a-function\/","title":{"rendered":"Python Program to Return Multiple Values From a Function"},"content":{"rendered":"

Functions in Python:<\/strong><\/p>\n

A function in Python is a set of related statements that performs a single task.<\/p>\n

Functions aid in the division of our program into smaller, modular chunks. Functions help our program\u00a0\u00a0become more structured and manageable as it increases in size.<\/p>\n

It also eliminates duplication and makes the code reusable.<\/p>\n

Given a function, the task is to return multiple values from the function.<\/p>\n

Return Multiple Values From a Function in Python<\/h2>\n

There are several ways to return multiple values from a function some of them are:<\/p>\n