Knowee
Questions
Features
Study Tools

which type of brackets are used to define python sets

Question

which type of brackets are used to define python sets

🧐 Not the exact question you are looking for?Go ask a question

Solution

Python sets are defined using curly brackets {}. For example: my_set = {1, 2, 3}.

Similar Questions

which type of brackets are used to define python lists

What are the different types of Collections in Python

What will be the output of the following Python code?a=set()type(a)Optionsclass set<class ‘set’><’set’>set

Which example below is declaring an array in Python?Array == 1, 2, 3[1, 2, 3]I don't know

What code segment is used to cast list “B” to the set “b”?1 pointb=set(B)b.set()b=B.dict()

1/3

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.