CRACKING WORLD
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How to create a list in Python 3.8.x or other version!

Go down

How to create a list in Python 3.8.x or other version! Empty How to create a list in Python 3.8.x or other version!

Post by MariusDragos Sun Oct 11, 2020 10:18 pm

How to create a list in Python 3.8.x or other version!

Hi today i will help you with lists in python a very simple chapter.

There are four collection data types in the Python programming language:

List is a collection which is ordered and changeable. Allows duplicate members.
Tuple is a collection which is ordered and unchangeable. Allows duplicate members.
Set is a collection which is unordered and unindexed. No duplicate members.
Dictionary is a collection which is unordered, changeable and indexed. No duplicate members.

List
A list is a collection which is ordered and changeable. In Python lists are written with square brackets.

Example:
thislist = ["apple", "banana", "cherry"]
print(thislist)

If you want advanced tutorial u can read here: https://www.w3schools.com/python/python_lists.asp
MariusDragos
MariusDragos
Founder
Founder

Mesaje : 65
Data de înscriere : 2020-10-11
Varsta : 28
Localizare : Cucamacai (only romanian will know)

https://cr4ckingworld.forumgratuit.ro

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum