- 1

why in a normal list the brackets do not appear, and an empty list if they appear? for example: list_1 = ["1,2,3"] empty_list = [] print (list_1) 123 print (empty_list) [] sorry for my English 😩

11th Aug 2016, 3:05 PM
Moto Brian Ortiz
Moto Brian Ortiz - avatar
4 Respuestas
+ 2
The brackets will appear for with argument list and without argument list when u print the output. Check again
11th Aug 2016, 4:56 PM
Sumanth Reddy
Sumanth Reddy - avatar
+ 2
OK, thanks!
11th Aug 2016, 4:59 PM
Moto Brian Ortiz
Moto Brian Ortiz - avatar
+ 1
For above example empty_list don't have any arguments, where in list_1 have arguments.. So the output will be 123
11th Aug 2016, 4:44 PM
Sumanth Reddy
Sumanth Reddy - avatar
+ 1
thank for responding, I do not understand is that in one case the output has brackets([ ]), and the other not
11th Aug 2016, 4:53 PM
Moto Brian Ortiz
Moto Brian Ortiz - avatar