LinkedIn Python Skill Assessment Quiz Answers

What is the correct syntax for creating a variable that is bound to a set?

Latest Update on 25th January, 2022 by Certification Course Answers

What is the correct syntax for creating a variable that is bound to a set?

  1.  my_set = {0, 'apple', 3.5}
  2.  my_set = to_set(0, 'apple', 3.5)
  3.  my_set = (0, 'apple', 3.5).to_set()
  4.  my_set = (0, 'apple', 3.5).set()

Correct Answer:

  •  my_set = {0, 'apple', 3.5}

Latest Updates

No posts found in this category.