Computer Science, asked by gokulpandya646, 1 month ago

Identify which of the following are List, Tuple and class ? a. Num [ 10,20,30,] b. arr ( 25,15,14 ) c. Student [ rollno, m1, m2 ] d day = ( ‘mon’, ‘Tue’, Wed’ ) e. X= [ 4,5,7,[8,9,],5.2] f. Employee [ ID, Name, Salary ]

Answers

Answered by deivayani1984
1

please make brand list friends

please make brand list friends

please make brand list friends

please make brand list friends

please make brand list friends

please make brand list friends

please make brand list friends

please make brand list friends

please make brand list friends

please make brand list friends

please make brand list friends

please make brand list friends

please make brand list friends

please make brand list friends

please make brand list friends

please make brand list friends

Answered by pragyakirti12345
0

Answer: (a) List, (b) Tuple, (c) List, (d) Tuple, (e) List, (f) List

Explanation:

List and tuple in python are the data structure that is used to store one or more objects or values. Both list and tuple can store heterogeneous objects or values in them. Elements of list is enclosed in square brackets, whereas elements of tuple are stored in parenthesis. A class in Python is a blueprint for creating objects.

a. Num =  [ 10,20,30,]  - List

b. arr = ( 25,15,14 ) - Tuple

c. Student = [ rollno, m1, m2 ] - List

d day = ( ‘mon’, ‘Tue’, Wed’ ) - Tuple

e. X= [ 4,5,7,[8,9,],5.2] - List

f. Employee = [ ID, Name, Salary ] - List

____________________________________________________

Related Links :

What is the difference between list and tuple ? Give an example.

https://brainly.in/question/16086796

The function used to create a tuple from a list

(A) tuple.list( ) (B) list.tuple( ) (C) tuple( ) (D) list( )​

https://brainly.in/question/40564971

#SPJ2

Similar questions