1.

Create a list having numbers [[1,4,7,10,.....100] as its elements and then create a set from this listPlz make the coding

Answer»

Explanation:

Python 2 Python 3

a = [1,2,3,4]

print(a)

Output

[1, 2, 3, 4]

Here, 'a' is a list of four integers.

Python 2 Python 3

print(type([]))

Output

As you can see that type([]) is GIVING us list. This MEANS that '[]' is a list as mentioned above.



Discussion

No Comment Found