+ 1

[INCOMPLETE] Python

there is no different Between using comma or not any one expalin

26th Jun 2018, 5:57 AM
Mounika
4 odpowiedzi
+ 7
Yes, please clarify...because commas do matter sometimes, and do *not* matter other times: tuple1 = () tuple2 = (1) tuple3 = (1,) list1 = [] list2 = [1] list3 = [1,] print(tuple1, tuple2, tuple3) () 1 (1,) print(list1, list2, list3) [] [1] [1] There may be other examples...this is just a guess.
26th Jun 2018, 3:41 PM
Kirk Schafer
Kirk Schafer - avatar
+ 3
Hello, Mounika ! Please write in more detail, and then different people can help you.
26th Jun 2018, 6:01 AM
Alexander Sokolov
Alexander Sokolov - avatar
0
ok
26th Jun 2018, 9:31 PM
Mounika
0
nice
27th Jun 2018, 2:52 AM
Mounika