0
What does " [ ] " mean in Python?
I can't understand it
7 Answers
+ 2
It is used to create list in python programming language
List is sequence of any string, object, int or objects.
a = [1,2,5,8]
In list a you can get elements by this
a[0] is 1
a[2] is 5
+ 1
Complete you Python course and then you will come to know.
+ 1
It can be used to create lists or extract list slices from list or strings
#list creation
A_list = [ 1,2,3 ]
#prints the first character of string
Var = txt[0]
#reverses string
Res = txt.[::-1]
0
Thanx
0
I will complete it
0
As soon as possible
0
Ok