Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged goclasses-da-dpp-day-208
2
2 votes
1
1 answer
155
155 views
GO Classes DPP | GATE DA | Python Programming | Set Operations
Consider the following Python code:A = {1, 2, 3, 4, 5} B = {4, 5, 6} C = {x * x for x in A if x % 2 == 1} print(sorted(A & B), sorted(A - B), sorted(C | {4}))What is the ...
GO Classes
155
views
asked
Jun 24
Programming in Python
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-208
programming-in-python
goclasses-python-&-dsa-practice-questions
output
+
–
1
1 vote
1
1 answer
109
109 views
GO Classes DPP | GATE DA | Python Programming | Add Remove
Consider the following Python code:fruits = {"apple", "banana"} fruits.add("apple") fruits.update(["cherry", "apple"], "go") fruits.discard("mango") fruits.remove("banana...
GO Classes
109
views
asked
Jun 24
Programming in C
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-208
programming-in-python
goclasses-python-&-dsa-practice-questions
output
+
–
3
3 votes
1
1 answer
112
112 views
GO Classes DPP | GATE DA | Python Programming | Set Method
Consider the following Python code:word = "banana" s = set(word) print(len(s), "b" in s, sorted(s))What is the output of the code above?3 True ['a', 'b', 'n']6 True ['a',...
GO Classes
112
views
asked
Jun 24
Programming in C
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-208
programming-in-python
goclasses-python-&-dsa-practice-questions
output
+
–
2
2 votes
1
1 answer
104
104 views
GO Classes DPP | GATE DA | Python Programming | Hashable Members
Consider the following Python code:s = {1, (2, 3), [4, 5]} print(len(s))What is the output of the code above?32{1, (2, 3), [4, 5]}TypeError
GO Classes
104
views
asked
Jun 24
Programming in C
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-208
programming-in-python
goclasses-python-&-dsa-practice-questions
output
+
–
4
4 votes
1
1 answer
118
118 views
GO Classes DPP | GATE DA | Python Programming | Set Creation
Consider the following Python code:nums = {3, 1, 2, 3, 2} nums.add(4) nums.add(2) print(len(nums), 2 in nums, sorted(nums))What is the output of the code above?5 True [1,...
GO Classes
118
views
asked
Jun 24
Programming in Python
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-208
programming-in-python
goclasses-python-&-dsa-practice-questions
output
+
–
To see more, click for the
full list of questions
or
popular tags
.