About python certification section 1-quiz

greetings of the day…
@Vaishalim722 @shivrajrtandale98

In session 1 of the python certification exam, I have doubt in two quiz questions… please find the attachment below.
please re-verify the answers and let me know how the answers fit right for given questions!
I look forward for your reply.

Thank you.

1 Like

Hello… @nagmafariyal2017
For Q.1:- for this question, kindly take help of your instructor.
For Q.2 :- In this example, All of the above is correct answer. For option b explanation is as follows
s1={1,2,3}
other_list=[3,4,5]
s1.union(other_list)
s1 is a set, and other_list=[3,4,5] is a list. By calling s1.union(other_list)' , you perform the union operation and create a new set that contains all the unique elements from both s1 and other_list. The output will be {1, 2, 3, 4, 5}` .

1 Like