Bir Öğeli Python Tuple
Bir Öğe ile Tuple Oluşturun
Yalnızca bir öğe içeren bir demet oluşturmak için, Python değişkeni bir demet olarak tanımadığı sürece, öğeden sonra virgül eklemelisiniz.
Örnek
Bir öğe demeti, virgül unutmayın:
thistuple = ("apple",)
print(type(thistuple))
#NOT a tuple
thistuple = ("apple")
print(type(thistuple))