Question: Goal: Learn to dynamically create a set. Assignment: Assume the variable data refers to a string. Write code that creates a set of all the
Goal: Learn to dynamically create a set.
Assignment: Assume the variable data refers to a string. Write code that creates a set of all the
digits in data. The set should only contain integer values. Assign the set to the variable digits.
Question
Feedback
More information
No output.
Feedback:
Expected variable 'digits' to exist Goal: Learn to remove elements from a set.
Assignment: Write a statement that removes from the set data, but does not fail it it's not
present.
data
data.discard
Question
Feedback
More information
No output.
Feedback:
Expected data to equal but got
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
