No products in the cart.

What are the various ways to …

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

What are the various ways to create a list in Python?
  • 2 answers

Tec Om 3 years, 6 months ago

we can make or create lists with square brackets like
a = [2,5,"science"]
this is a list where "a" is an identifier and 2 and 5 are integers and 'science ' is a string
if you print it then
print(a)
then it will give the output
[2, 5, 'science']

Diya Vijay 3 years, 6 months ago

Send the answers fastly
http://mycbseguide.com/examin8/

Related Questions

myCBSEguide App

myCBSEguide

Trusted by 1 Crore+ Students

Test Generator

Test Generator

Create papers online. It's FREE.

CUET Mock Tests

CUET Mock Tests

75,000+ questions to practice only on myCBSEguide app

Download myCBSEguide App