Page 273 - CTS - CSA TP - Volume 2
P. 273
COMPUTER SOFTWARE APPLICATION - CITS
# Finding maximum and minimum
max_num = max(numbers)
min_num = min(numbers)
print(“Maximum:”, max_num)
print(“Minimum:”, min_num)
Output:
TASK 7: List Concatenation
# Creating two lists
list1 = []
list2 = []
limit=int(input(“Enter the Limit: “))
foriin range(0,limit):
list1.append(int(input(“Enter the Elemtes of List 1: “)))
foriin range(0,limit):
list2.append(int(input(“Enter the Elemtes of List 2: “)))
# Concatenating lists
result_list = list1 + list2
print(“Concatenated List:”, result_list)
Output:
258
CITS : IT & ITES - Computer Software Application - Exercise 128 CITS : IT & ITES - Computer Software Application - Exercise 128