Computer Science Of Engineering

Simple and practical computer science tutorials, programming guides, and engineering concepts for students and beginners.

Breaking

Friday, April 25, 2025

Write a python program to create tuples (name, age, address, college) for at least two members and concatenate the tuples and print the concatenated tuples.

# Creating tuples for two members

member1 = ("Raj", 21, "Hyderabad", "Osmania University")

member2 = ("Priya", 22, "Chennai", "Anna University")


# Concatenating the tuples

concatenated_tuple = member1 + member2


# Printing the concatenated tuple

print("Concatenated Tuple:")

print(concatenated_tuple)

Output:


No comments:

Post a Comment