all programming language at TCCI, Computer programming at TCCI, Python, PYTHON COURSE IB TCCI, Python language, TCCI-Tririd Coaching

Python List Examples

Python is a programming language which works quickly and integrates systems more effectively in development process.

Python is a very popular programming language which was created by Guido van Rossum, and released in 1991.

Different Uses of Python

  • Web Based Development
  • Software Development Process
  • Mathematics Problems
  • System Scripting Execution

Why to Consider Python?

  • Python can be used in server side to create different web applications.
  • Python can be used together with software to create various workflows.
  • Python can connect to database systems to read and modify files.
  • Python can be used to solve big data problems and perform complex mathematics.
  • Python can be used for fast prototyping for production-ready software development.

Python List

Python lists are used to store multiple items in a single variable(in List format). Python list built-in data types in Python used to store collections of data with different qualities and usage.

Characteristics of Lists

  • The Python list has the following characteristics:
  • The Python lists are in ordered format.
  • The element of the list can access by index.
  • The Python lists are the mutable type.
  • The Python lists are mutable types.
  • A Python list can store the number of various elements.

Syntax:-

my_list = [“Value-1″ , ” Value-2″ , ” Value-3……………………………………………………………nth times”]

Example 1 :

my_list = [“Apple”, “Banana”, “Mango”]

Create a List:

my_list = [“Apple”, “Banana”, “Mango”]

print(my_list)

Output:-

[“Apple”, “Banana”, “Mango”]

Example 2 :

my_list = [1, 2, 3]

Create a List:

my_list = my_list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 0]

print(my_list)

Output:-

[1, 2, 4, 5, 6, 7, 8, 9, 0]

Example 3 :

my_list = [1, “Apple”, 9.5]

Create a List:

my_list = [1, 2, 3, “Apple”, “Banana”, “Mango”, 1.5,  2.5, 3.5]

print(my_list)

Output:-

[1, 2, 3, “Apple”, “Banana”, “Mango”, 1.5,  2.5, 3.5]

TCCI provides python programming training through different learning method/media as per students convince.

For More Information:                                          

Call us @ 9825618292

Visit us @ http://tccicomputercoaching.com  

Leave a comment