+ 2
Python lists
The question is : >>>names=["a","b","c"] what will be output now?
18 ответов
+ 10
you could test this yourself.
though try it without the >>> , that is useless to include and will cause an error.
all it does it make a list of strings you typed. it does not print it.
+ 3
Well that helped alot #CodeLazar
+ 2
you should use list as a variable name.
creating a list itself outputs nothing
0
You only store "a", "b" and "c" in list(names)
You didnt anything
0
My question is: >>>list =["Ramu", "Pavan", "Naresh"]
0
k
0
print("names")
>>>a,b,c
0
print(names)
>>>["a","b","c"]
or
None
0
A big, huge, mess; if you were to have that function correctly, however, it would would like so:
names=["a", "b", "c"]
print("names [0]")
//run
>>>names a
//it is like so because the way that I have SELECTED THE OBJECT IN THE LIST : "0". AND also in the way that there is an appropriate output for the code to work with. I don't really know what kind of an answer you were expecting, but I hope this is it.
0
The output would be nothing as it only stores the values you gave to python
If you would print the variable then only any output will come else nothing
0
Anyone else feel insane when they type code and it doesn't show an error
0
no output
0
no
0
yes
0
maybe
0
bruh
0
Remember, the first is zero instead of one.
- 2
It’s like array in cpp so u store the list of word in the file names so nothing will print because you didn’t ask it to print
Or u can think a list like a smart box which will give u the thing u want when u ask it