0
Lists
I don’t know how to write lists. Can someone help me?
6 Answers
+ 1
Yes,that is it thanks a lot!
+ 12
list = ['did' , 'u', 'mean' , 'this?']
https://www.sololearn.com/learn/Python/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
Empty list
Food = []
+ 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💛
Hot today
I have made a calculator in which my % (Percentage) not work correctly for 100%50 or 100%20.
2 Votes
Python palindrome challenge.
1 Votes
Java
0 Votes
Number of Ones ( C++ ) question!
1 Votes