Learning Python: Lists - Deepstash

Bite-sized knowledge

to upgrade

your career

Ideas from books, articles & podcasts.

Learning Python: Lists

Learning Python: Lists

Now we are getting to the fun stuff. 

We can think of a list as a variable that can contain more than one variable, and they can all be different data types.

As you can see by the image we define a list the same way as a variable, in this case "My_List =" after the equal we need to use square brackets "[ ]".

In this lesson we will just print the lists, which is just "print(My_List)", this wil print the list in to the console as you can see.

In the next lesson we will look at how to manipulate the lists.

Dont forget to join the discord channle if you need any help

STASHED IN:

4

2 Reactions

Comment

MORE LIKE THIS

created 1 idea

14

Comment

361 reads

created 1 idea

3

Comment

105 reads

created 1 idea

1

Comment

30 reads

It's time to

READ

LIKE

A PRO!

Jump-start your

reading habits

, gather your

knowledge

,

remember what you read

and stay ahead of the crowd!

Takes just 5 minutes a day.


TRY THE DEEPSTASH APP

+2M Installs

4.7 App Score