What is the purpose of creating empty tuple | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

What is the purpose of creating empty tuple

Hi, I just find out that i can't assign new value to a tuple So why we create an empty tuple in the first place?

7th Dec 2018, 12:35 PM
Mohamed KOUBAA
Mohamed KOUBAA - avatar
1 ответ
+ 2
There are times that there isn't anything to put into the tuple. This gives an example and more details: https://stackoverflow.com/questions/4828041
7th Dec 2018, 9:03 PM
John Wells
John Wells - avatar