Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 7

Lab Report 02

Name ABDULLAH GONDAL

Registration Number FA20-BEE-109

BEE(5C)
Class/Section

Instructor’s Name Sir Azfur Yaqub

In Lab Activities:
Activity 1:

Activity 2:
Activity 3:

Activity 4:

Activity 5:
Activity 6:

Activity 7:

Activity 8:
Home Activities:

Activity 1:

Code:

a=[]

c=[]

n1=int(input("Enter number of elements: "))

for i in range(1,n1+1):

b=int(input("Enter Elements: "))

a.append(b)

n2=int(input("Enter Number of Elements: "))

for i in range(1,n2+1):

d=int(input("Enter Elements: "))

c.append(d)
Output:
new=a+c

new.sort()

print("Sorted List is: ",new)


In this home

Activity 2:

Code:

a=[]

c=[]

n1=int(input(“Enter number of elements: “))

for I in range(1,n1+1):

b=int(input(“Enter Elements: “))

a.append(b)

n2=int(input(“Enter Number of Elements: “))

for I in range(1,n2+1):

d=int(input(“Enter Elements: “))

c.append(d)

new=a+c

new.sort()

print(“Sorted List is: ",new)

print("Largest Element in the list is: ",max(new))

print("Minimum ELement in the List is: ",min(new))


Output:

Critical Analysis:

In this lab task, we make various records for different wanted yields as
per the different given conditions which are Consolidating Information
records, acquiring amount of entered components in the rundown,
arranging components of records, Showing Exhibits and Characters.
For every one of the exercises we utilized circles and reach orders. We
likewise utilized tuples and get to know how to make the capabilities.

You might also like