Friday, February 6, 2026

 Python

Tuple                        

It is a collection data types enclosed in round bracket. 

#Tuple
str1 = "Hello"
num1 = 15
tuple1 = (str1, "India", 10, num1, 3.5)
print(tuple1)  

output
('Hello', 'India', 10, 15, 3.5)          

No comments:

Post a Comment

Python Passing arguments through function using args and kwargs args take non keyworded arguments, while kwargs take keyworded arguments. de...