0
Lists
I donât know how to write lists. Can someone help me?
5 RĂ©ponses
+ 1
Yes,that is it thanks a lot!
+ 12
list = ['did' , 'u', 'mean' , 'this?']
https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2431/
+ 2
I think first you should go through python tutorial from sololearn.
+ 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.
+ 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đ