Sunday, 11 December 2022

Tuple

 

<class 'tuple'> <class 'str'>
('apple', 'kiwi', 'cherry')
('apple', 'banana', 'cherry', 'orange')
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
Cell In [2], line 32
     30 thistuple = ("apple", "banana", "cherry")
     31 del thistuple
---> 32 print(thistuple)

NameError: name 'thistuple' is not defined

green = apple yellow = banana red = cherry Approach 1 : apple Approach 1 : banana Approach 1 : ['cherry', 'strawberry', 'raspberry'] Approach 2 : apple Approach 2 : ['mango', 'papaya', 'pineapple'] Approach 2 : cherry
2

No comments:

Kiro - Core Features

What is Kiro Kiro is an innovative AI-powered IDE that revolutionizes software development through intelligent assistance and structured wor...