Computer Science, asked by amruthaprasad2065, 8 months ago

Write proper commands/inbuilt functions for the following based on the lists (3.5)
>>>A= [1,2,3] >>>B= [4,5,6,7,8]
(a) To join the two lists A & B .Result should be [1,2,3,4,5,6,7,8]
(b) To repeat the list A ,3 times O/P should be [1,2,3,1,2,3,1,2,3]
(c ) To add a new element 9 to the list B.
(d) To replace the first element of list A with 100.
(e) To delete the element 3 from list A.
(f) To append list B to list A.
(g) To insert an element 25 between element 5 & 6 in the list B.

Answers

Answered by aaravs618gmailcom
0

Answer:

1. \When a person lifts weight, the arms of the person perform a door like movement at the elbow.

The joint at the elbow is therefore, the hinge joint.

2. 1) No. of relations from A to B =2

mn

=2

3×3

=512→c

2) No. of constant functions from R to A is number of elements in A i.e.15→a

3) Let number of elements in A=n

So one - one functions from A to A is n!

& n!=720

∴n=6→b

4) Identity function f(x)=x

So there will be only one function.→d

Answered by gaganadithyareddy9
0

Answer:

Hey! This is in python...

a = [1, 2, 3]

b = [4, 5, 6, 7, 8]

Question (a) answer:

print(a+b)

Question (b) answer:

print(a*3)

Question (c) answer:

b.append(9)

Question (d) answer:

a[1] = 100

Question (e) answer:

a.remove(3)

Question (f) answer:

a.append(b)

Question (g) answer:

b.insert(2, 25)

# HOPE THIS HELPS!!

Similar questions