+ 1
Different bucket in python
whats is the diffrent () and [ ].im confuse.please add some example too thanx
3 Respostas
+ 2
() produces an empty TUPLE while [] produces an empty LIST.
A tuple is immutable but a list is mutable.
+ 1
difference lies in their use..parentheses are used in comparing, loops.etc..while [] are used in lists.
0
@Akshay not really... for the same syntaxic use, they produce different types