TCCI-Tririd Computer Coaching Institute is focused on providing Quality education with practical sessions.Satisfaction of our student is our priority. We pride ourselves for providing proficient IT solutions. We have a highly qualificated and expereinced faculties, who, not only handle teaching, but also aspire to provide the best possible solution through their technical expertise.
Tuesday, December 1, 2020
Friday, November 27, 2020
List in Python
The simplest data structure in Python and is used to store a list of values.
Lists are collections of items (strings, integers, or even other lists).
Each item in the list has an assigned index value.
Lists are enclosed in [ ]
Each item in a list is separated by a comma
Unlike strings, lists are mutable, which means they can be changed.
Examples:
emptyList = [ ]
list1 = ['one, two, three, four, five']
numlist = [1, 3, 5, 7, 9]
mixlist = ['yellow', 'red', 'blue', 'green', 'black']
An empty list is created using just square brackets:
list = []
|
Method |
Description |
|
Add Single Element to The List |
|
|
Add Elements of a List to Another List |
|
|
Inserts Element to The List |
|
|
Removes Element from the List |
|
|
returns smallest index of element in list |
|
|
returns occurrences of element in a list |
|
|
Removes Element at Given Index |
|
|
Reverses a List |
|
|
sorts elements of a list |
|
|
Returns Shallow Copy of a List |
|
|
Removes all Items from the List |
|
|
Checks if any Element of an Iterable is True |
|
|
returns true when all elements in iterable is true |
|
|
Returns String Containing Printable Representation |
|
|
Converts a Value to Boolean |
|
|
Returns an Enumerate Object |
|
|
constructs iterator from elements which are true |
|
|
returns iterator for an object |
|
|
creates list in Python |
|
|
Returns Length of an Object |
|
|
returns largest element |
|
|
returns smallest element |
|
|
Applies Function and Returns a List |
|
|
returns reversed iterator of a sequence |
|
|
creates a slice object specified by range() |
|
|
returns sorted list from a given iterable |
|
|
Add items of an Iterable |
|
|
Returns an Iterator of Tuples |
To learn more about python Connect with TCCI , AhmedabadTCCI provides online coaching for Python.
To know more about Computer Course at TCCI, Engineering Course at TCCI
Call us @ 98256 18292.
Visit us @ http://tccicomputercoaching.com/
Wednesday, February 12, 2020
Thursday, April 11, 2019
Wednesday, November 14, 2018
Monday, November 12, 2018
List in Python-tccicomputercoaching.com
Lists are collections of items (strings, integers, or even other lists).
Each item in the list has an assigned index value.
Lists are enclosed in [ ]
Each item in a list is separated by a comma
Unlike strings, lists are mutable, which means they can be changed.
Examples:
emptyList = [ ]
list1 = ['one, two, three, four, five']
numlist = [1, 3, 5, 7, 9]
mixlist = ['yellow', 'red', 'blue', 'green', 'black']
An empty list is created using just square brackets:
list = []
Methods in List:
| Method | Description |
| Python List append() | Add Single Element to The List |
| Python List extend() | Add Elements of a List to Another List |
| Python List insert() | Inserts Element to The List |
| Python List remove() | Removes Element from the List |
| Python List index() | returns smallest index of element in list |
| Python List count() | returns occurrences of element in a list |
| Python List pop() | Removes Element at Given Index |
| Python List reverse() | Reverses a List |
| Python List sort() | sorts elements of a list |
| Python List copy() | Returns Shallow Copy of a List |
| Python List clear() | Removes all Items from the List |
| Python any() | Checks if any Element of an Iterable is True |
| Python all() | returns true when all elements in iterable is true |
| Python ascii() | Returns String Containing Printable Representation |
| Python bool() | Converts a Value to Boolean |
| Python enumerate() | Returns an Enumerate Object |
| Python filter() | constructs iterator from elements which are true |
| Python iter() | returns iterator for an object |
| Python list() Function | creates list in Python |
| Python len() | Returns Length of an Object |
| Python max() | returns largest element |
| Python min() | returns smallest element |
| Python map() | Applies Function and Returns a List |
| Python reversed() | returns reversed iterator of a sequence |
| Python slice() | creates a slice object specified by range() |
| Python sorted() | returns sorted list from a given iterable |
| Python sum() | Add items of an Iterable |
| Python zip() | Returns an Iterator of Tuples
|
To learn more about python Connect with TCCI , Ahmedabad
TCCI provides online coaching for Python.
To know more about Computer Course at TCCI, Engineering Course at TCCI
Visit us @ http://tccicomputercoaching.com/

