Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Add OR Concatenation of Tuples in python

# Concatenation of tuples
Tuple1 = (0, 1, 2, 3)
Tuple2 = ('Python', 'Softhunt', 'Tutorials')
 
Tuple3 = Tuple1 + Tuple2
 
# Printing first Tuple
print("Tuple 1: ")
print(Tuple1)
 
# Printing Second Tuple
print("
Tuple2: ")
print(Tuple2)
 
# Printing Final Tuple
print("
Tuples after Concatenation: ")
print(Tuple3)
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Add #OR #Concatenation #Tuples #python
ADD COMMENT
Topic
Name
7+1 =