204k views
2 votes
Create a list named permanent_fantasy with the elements 'pink', 'pj', and 'elephant'.

User Nordis
by
8.3k points

1 Answer

5 votes

Final answer:

To create a list in Python with the given elements, use square brackets [] and separate the elements with commas.

Step-by-step explanation:

To create a list in Python, you can use square brackets [ ] and separate the elements with commas. In this case, you can create a list named permanent_fantasy with the elements 'pink', 'pj', and 'elephant' like this:

  • permanent_fantasy = ['pink', 'pj', 'elephant']

User Gedamial
by
7.5k points