Lists | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Lists

I donā€™t know how to write lists. Can someone help me?

20th Jul 2018, 2:46 AM
HappyCoderšŸ˜ƒ
HappyCoderšŸ˜ƒ - avatar
5 Respostas
+ 1
Yes,that is it thanks a lot!
20th Jul 2018, 2:50 AM
HappyCoderšŸ˜ƒ
HappyCoderšŸ˜ƒ - avatar
20th Jul 2018, 2:49 AM
Frost
Frost - avatar
+ 2
I think first you should go through python tutorial from sololearn.
20th Jul 2018, 2:55 AM
$Ā¢šŽā‚¹š”­!šØš“
$Ā¢šŽā‚¹š”­!šØš“ - avatar
+ 1
How to create lists I guess. If so, you just need assign to your variable the list inside square bracketsĀ [], (elements) separated by commas.
14th May 2021, 11:32 AM
Idris RĆØmilĆØkoun AMINOU
Idris RĆØmilĆØkoun AMINOU - avatar
+ 1
First, write the name you want for the list (you can not use numbers in the first of the name) Next, you open an equal sign (=) and then an bracket. Then you write the items in the list, note that if it was a number, you only write the number, and if it was a string, be sure to write it between two quotes ("or '). All items in the list are separated by commas, and sometimes a comma is placed after the last item that does not need to be used. Finally you close the brackets. I hope I helped youšŸ’›
4th Jun 2022, 4:49 PM
Ramtin Jafari
Ramtin Jafari - avatar