Program 4: Concatenate Two Lists
हिंदी में: Concatenation का अर्थ दो या दो से अधिक Lists को जोड़ना है। Python में + operator का उपयोग किया जाता है।
English: Concatenation means joining two or more lists using the + operator.
Code:
list1 = [10, 20, 30]
list2 = [40, 50, 60]
result = list1 + list2
print("First List:", list1)
print("Second List:", list2)
print("Concatenated List:", result)
Output:
First List: [10, 20, 30]
Second List: [40, 50, 60]
Concatenated List: [10, 20, 30, 40, 50, 60]