Computer Science, asked by vinayak146, 6 months ago

List can contain values of these types:- 


1) Integers

2) floats

3) Lists

4) tuples

5) all of the above

Answers

Answered by annunavneetsinghal
10

Answer:

5 option is correct

Explanation:

hope it helps!!!!

Answered by BrainlyYoda
2

List can contain values of the types Integers, Floats, Lists, and Tuples.

5) All of the above

Extra Information

veggies = ['cabbage', 'brinjal', 'onion', 'beans']

'veggies' (variable) is a list in which multiple items are stored.

Integer Values such as the whole numbers can be positive, negative and zero. Example => 5, 6, 7, -8, 0 etc.

Float values are those values that consist of decimal numbers. Example => 5.25, 9.187 etc.

A tuple is almost like a List and contains python objects and objects inside are separated by comma (,) and enclosed within parentheses.

A list can have another list inside it and can have tuples inside it too.

More Examples of List =>

1. list1 = [6.25, 'brinjal', 'onion', 'beans']

2. list2 = [5, 6, -8, 0]

3. list3 = [5.36, 8.25, -9.26, 6]

4. list4 = [6.25, 'brinjal', 'onion', [5.36, 8.25, -9.26, 6]]

5. list5 = [6.25, 'brinjal', 'onion', (5, 6, -8, 0)]

Python is created by Guido van Rossum and came into existence in 1991. It is a high-level and general programming language. It is a very lucid programming language as it has a good language construct and object-oriented approach. It is dynamically typed and garbage-collected.

Similar questions