Python List Construct MethodPython Functions

Difficulty Level:
Difficulty Level:

Syntax

Example

#!/usr/bin/python3
# -*- coding: UTF-8 -*-

list1 = ['MIT', 'UCI', 1997, 2019]
list2 = [1, 2, 3 ]
list3 = ["a", "b", "c"]
listname = []

Parameters

The method doesn’t take any parameters.

Return Value

It doesn’t return any values.

Advertisement

© 2021 Pythonexample.org, all rights reserved. Privacy Policy | Contact Us