How can define a list in Python?

To define a list in Python, you can use square brackets [] and separate the elements with commas. Here's an example:


motorcycles=['honda','yamaha','suzuki']

Comments

Leave a Reply