{"id":24850,"date":"2021-11-02T09:54:42","date_gmt":"2021-11-02T04:24:42","guid":{"rendered":"https:\/\/python-programs.com\/?p=24850"},"modified":"2021-11-02T09:54:42","modified_gmt":"2021-11-02T04:24:42","slug":"python-list-function-with-examples","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-list-function-with-examples\/","title":{"rendered":"Python list() Function with Examples"},"content":{"rendered":"

list() Function in Python:<\/strong><\/p>\n

The list() function is used to create a list object.<\/p>\n

A list object is an ordered and changeable collection.<\/p>\n

Syntax:<\/strong><\/p>\n

list(iterable)<\/pre>\n

Parameters<\/strong><\/p>\n

iterable:<\/strong> This is required. It could be a sequence, collection, or iterator object.<\/p>\n

Return Value:<\/strong><\/p>\n

It returns a list.<\/p>\n