So is assigning a variable to something the same as creating a tuple? or syntacticly what is the diff? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

So is assigning a variable to something the same as creating a tuple? or syntacticly what is the diff?

30th Jul 2016, 4:57 PM
William Wimberly
William Wimberly - avatar
1 Answer
0
variables are asignments to pieces of information/code. A variable is mostly used to shorten things like text or codes. lists, dictionairies, tuples and sets are datastructures wich contain multiple pieces of information wich can be used later, so they ARENT the same
4th Aug 2016, 9:31 AM
Tom Post
Tom Post - avatar