Answers for "python declare list vs tuple"

2

list vs tuple python

mylist : list = [] # <-- a list variable can be defined either as [] or <varname> : list
mytuple : tuple = () # <-- a tuple variable can be defined either as () or <varname> : tuple
Posted by: Guest on December-24-2020

Python Answers by Framework

Browse Popular Code Answers by Language