You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: python/06-Lists.md
+8-8
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
<h1align="center"> Lists </h1>
2
2
3
3
## What are lists ?
4
-
> List is a collection in python. In most languages, it is called Array. We often need 'list' in our programs. Imagine you are writing a program to store name of every student in a class of 50 .
4
+
> List is a collection in python. In most languages, it is called an Array. We often need 'list' in our programs. Imagine you are writing a program to store the name of every student in a class of 50 .
5
5
6
6
> Elements in a list are stored in sequential order . Every element can be accessed by their index value .
7
7
@@ -24,23 +24,23 @@ player_scores = [ 78, 103, 200 , 57] # >>> Initialized list with Integers
24
24
player_names = [ "Karan" , "Chirag" , "Jay" , "Raj" ] # Initialized list with strings
25
25
```
26
26
27
-
> Unlike other programming languages , in python we can Initialized or store elements in a list which are of different datatypes . For example,
27
+
> Unlike other programming languages , in python we can Initialize or store elements which are of different datatypes in the same list. For example,
0 commit comments